Archive

Posts Tagged ‘editable’

Provide a Flex itemEditor with dynamic data

June 2nd, 2010 Wannes 2 comments

When your Flex application needs an editable datagrid, you mostly add some itemEditors or itemRenderers to change the data.
You can find a lot of samples on the web, although it is not always that easy as most of them show.

This post shows a solution when you need an itemEditor that needs data different from the itemEditor its data property.

You can see an example of this blog post behind this link.

Read more…

Categories: Flex Tags: , , ,

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: , , ,