hi

This is one of the way you can get the value


<mx:DataGridColumn headerText="value"
                                   dataField="value"/>
<mx:DataGridColumn headerText="Select"
                                   paddingLeft="5"
                                   dataField="selected"
                                   width="75" rendererIsEditor="true" 
editorDataField="selected">
        <mx:itemRenderer>
                <mx:Component>
                        <mx:CheckBox  
change="outerDocument.getValue(this,data.value)">
                        </mx:CheckBox>
                </mx:Component>
        </mx:itemRenderer>
</mx:DataGridColumn>

---------------------Script------------------------

public function OnCheckTable(comp:CheckBox, value:String):void
{
        cbSelected = testChk.selected;

}

i think this may help u


Regards
skmani

On Feb 25, 3:59 pm, nirav <[email protected]> wrote:
> Hi..
> i have a datagird colunm as shown below...how can i get checkbox
> value?
> <mx:DataGridColumn headerText="Select" rendererIsEditor="true"
> editorDataField="selected">
>    <mx:itemRenderer>
>       <fx:Component>
>             <mx:HBox>
> <s:CheckBox id="testChk" click="testChk_clickHandler(event)"
> selected="{cbSelected}">
> </s:CheckBox>
>    <fx:Script>
>       <![CDATA[
>          [Bindable]
>          public var cbSelected:Boolean;
>        protected function testChk_clickHandler(event:MouseEvent):void
>          {
>          cbSelected = testChk.selected;
>          }
>       ]]>
>    </fx:Script>
> </mx:HBox>
> </fx:Component>
> </mx:itemRenderer>
> </mx:DataGridColumn>

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