2 Replies Latest reply on Jun 11, 2009 8:24 AM by *Prashant Shelke*

    Check boxes in Data grid

    anu3000

      Hi,

      I have check boxes in data grid, using action script how do i get the values of check boxes that were selected ?

      Can anybody guide me here.

       

      ------------------------------------------------------------------------------------------ -------------

       

       

       

       

       

       

       

       

      <mx:DataGrid

      id="targetBaseAdd" width="100%" height="100%"

      dataProvider="

      {Application.application.ccModel.initializeBusinessUnitData.initializeBusinessUnit.baseArra y}">

       

      <mx:columns>

       

      <mx:DataGridColumn headerText="" width="20">

       

      <mx:itemRenderer>

       

      <mx:Component>

       

      <mx:HBox width="100%">

       

                     <mx:CheckBox horizontalCenter="0"/>

       

       

      </mx:HBox>

       

      </mx:Component>

       

      </mx:itemRenderer>

       

      </mx:DataGridColumn>

       

      <mx:DataGridColumn headerText="Base" labelFunction="baseTargetList"/>

       

      </mx:columns>

       

      </mx:DataGrid>

      ------------------------------------------------------------------------------------------ --------------

       

      Thank You,

      Anu.

       

      </mx:HBox>

       

      </mx:Component>

       

      </mx:itemRenderer>

       

      </mx:DataGridColumn>

       

      <mx:DataGridColumn headerText="Base" labelFunction="baseTargetList"/>

       

      </mx:columns>

       

      </mx:DataGrid>

      ------------------------------------------------------------------------------------------ --------------

       

      Thank You,

      Anu.