flexgeek

Tips & Tricks : itemEditors – I

Posted on: April 9, 2007

Read the post here – http://blog.flexgeek.in/2007/04/tips-tricks-itemeditors-i/

5 Responses to "Tips & Tricks : itemEditors – I"

[…] & Tricks – ItemEditors – II We saw in the earlier article about using itemEditors in a flex datagrid. Now, Lets dive a little deeper into doing some more […]

Nice. I’m trying to do this, adding numeric steppers in a DataGrid to edit quantities. My problem is, each entry in the data grid has a different minimum and maximum, as in:

private var ingredientList2:ArrayCollection = new ArrayCollection([
{label:”Celery, chopped”, quant:1, min2:1, max2:2, units:”cups”},
{label:”Onions, chopped”, quant:1, min2:2, max2:3, units:”cups”} ]);

How can I pass the different Min and Max values to the steppers?

Have you noticed that when you do not use the stepper in your dataGrid field and instead type in a value in that field the typed value is not committed when you leave the that record?

I have yet to find a solution for this problem!

I have a requirment where i need to render diffrent editors based on the value in the cell.

e.g. if value is numeric then number steper should be the editor and if the value is string it should render text input. Same column can have nummeric values or alpha numberic values. based on value the editor should apear.

can you help me in this ?

[…] 的 Programming Flex 2 中的例子不太反映出該 attribute 的重要性。在網上 https://flexgeek.wordpress.com/2007/04/09/tips-tricks-itemeditors-i/ 這網站亦只提及這 attribute […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: