I have a DataGrid, with
NumericStepper in a few columns. When a value in the DataGrid is edited, I would like to update several values displayed on the screen, and so want to call a
First, I added this function to
itemEditEnd event of the
DataGrid, but the function is getting called before the new value is updated into the
dataProvider and hence, the values I have in the function are the old values. Is there any other event that is fired after the values are updated into the
dataProvider? or am I missing something?
Second, I tried putting this function in the change event of each
itemEditor (duh!), but then again, the change event is fired, but the values in the
dataProvider are the old ones.
Is there any way I can make the function
updateValues() be called, every time a value is edited AND updated into the
dataProvider, because there's where I am taking the values from?
Thanks a lot.
So yeah, it gets called before the dataprovider has the data.
Here's what you should read: Detecting Datagrid Edits. He talks about all the same stuff. Event priority is the ticket. Overly complicated is the Flex way. Cheers.