You can directly give the TextInput as ItemRenderer, you'll get the
solution.

On Oct 9, 10:09 pm, AAFShini <[EMAIL PROTECTED]> wrote:
> HI,
> I have a DataGrid, that has lets say 2 columns, each column is in a
> seperate mxml file and used in itemRenderer.
> How can I get the data that the user has entered in those column when
> I hit Submit button.
> Examples:
> component1:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml";
> horizontalScrollPolicy="off">
>         <mx:Script>
>                 <![CDATA[
>                         [Bindable]
>                         public var text:String;
>                 ]]>
>         </mx:Script>
>
>         <mx:TextInput id="rate" restrict="0-9 ." maxChars="7"  text="0.02"
> toolTip="Please enter the rate" />
> </mx:Canvas>
>
> Component2:
> Samething but with ComboBox
>
> DataGrid is Actually in a Component and the Mail Application uses it
> in a ViewStack.
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"; textAlign="center"
> height="{dg.height+76}">
> <mx:VBox>
> <mx:Script>
>         <![CDATA[
>                 import mx.collections.ArrayCollection;
>                 [Bindable]
>                 private var sData:ArrayCollection = new
> ArrayCollection([{count:"1"}, {count:"2"}, {count:"3"}]);
>         ]]>
> </mx:Script>
>         <mx:DataGrid editable="true" id="dg" dataProvider="{sData}"
> width="1100"  >
>                 <mx:columns>
>                 <mx:DataGridColumn headerText="Rate"  rendererIsEditor="true"
> itemRenderer="component1"/>
>                 <mx:DataGridColumn headerText="comp2" rendererIsEditor="true"
> itemRenderer="component2"/>
>                 </mx:columns>
>         </mx:DataGrid>
>
> </mx:VBox>
> <mx:Button label="Submit" click="getData()"/>
> </mx:Panel>
>
> Is this possible?
> or I should do it in itemEndEditor event and gather data then.
>
> PLease Help,
>
> AFShin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to