I have been working on AdvanceDataGrid for quite some time now.
Facing an issue w.r.t. item editors.
The grid generates columns at run-time, using an object of
advance-datagrid-column. I have added an item editor at run-time(say for a
loop of 6):
adgc.itemEditor = new ClassFactory(ItemRenderer4);

The code for above class is as follows:

/*****************************************************************************/
<?xml version="1.0" encoding="utf-8"?>
<s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009";
                                 
xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  focusEnabled="true">
   
    <fx:Script>
        
    </fx:Script>
   
   
   
    <mx:TextInput id="val" restrict="0-9." width="100%" height="100%"
maxChars="250" enabled="false"
                  editable="false" text="{what should be written here in
order to get the value?}" click="textinput1_clickHandler(event)"/>
</s:MXAdvancedDataGridItemRenderer>

/*****************************************************************************/

What am i suppose to write in text in order to make it dynamic for each
datafield in the loop?
I have tried listData.label in text but as and when i click the text input,
it shows null value.


ItemRenderer works great, i want item editor work out in order to edit and
save values on the selected row.

Your assistance/references will be highly appreciated.



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Dynamic-Item-Editor-for-Advance-Data-Grid-tp8564.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to