Interactive Item Renderers for DataGrid

Working with the item renderers in flex!
This is one of the most common questions that I have come across in my experience while working on flex.

Many a times developers want to make interactive item renderers for DataGrid columns which will in-turn change the very data of the DataGrid. Initially even I struggled to do some of the operations where itemRenderers were involved.

So, for the flex community, I am posting an example here. This is a very simple example in which by changing the the value in the combo box (which is an itemRenderer), the image displayed in the other column of the dataGrid is changed (and also the dataProvider of the DataGrid).

Please click here to see the example (view source is enabled in the example).

In the source of the example, you will notice that the dataGrid dataProvider is changed when the item renderer (ComboBox) selected value is changed, hence the icons shown in the second columns are updated.

If you have any comments or suggestions, please post a comment.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

How to do with dynamic datas

Thank you

Thanks for the useful discussion…..!!!

Leave a comment

(required)

(required)