I need to add a event listener to and itemRenderer.
Waht am trying to do is.. I inserted a textbox in datagrid
cell using itemrenderer . can see the code below.
var dgc:DataGridColumn=new DataGridColumn();
dgc.itemRenderer= new ClassFactory(textBoxRenderer);
Whats the requirement is.. At runtime i need to change the
itemrenderer from textbox to combobox.. am able to do that.. At the
same time i wanna change the ArrayCollection data.. which is a
dataprovider of this datagrid.
Let me know if not clear.
Help me plzzzzzzzzzzzzzz :-(
You can get the ArrayCollection of the DataGrid using the
dataProvider property of the DataGrid. Try changing this
ArrayCollection and invoking a refresh() on the ArrayCollection. If
the refresh() is not helping, try setting the modified
ArrayCollection object to the dataProvider property of the
Hope this helps.