Archive

Posts Tagged ‘itemEditEnd’

A Flex issue with an editable datagrid its itemEditEnd event

May 28th, 2010 Wannes No comments

Today I had to create an editable datagrid in my Flex application. Once a property of a row was edited, the edited item must be saved to the database.
I didn’t expect much trouble, although I get stuck with a really annoying Flex issue.

I added a listener to the dataGrid its itemEditEnd event, so I could save the item in the listener function.
For some reason, the item its property was not yet changed when the event was dispatched.
I looked for some relevant event properties, but nothing useful found.

After a while I solved it by adding a callLater in the listener. A timeOut or a callLater is not my favorite way of working, but I didn’t found a better solution.

I uploaded a sample.

Please feel free to add a better solution!

Categories: Flex Tags: , , ,