4 Replies Latest reply on Aug 27, 2009 6:42 PM by Si Phu

    checkbox selection in datagrid.

    karnatis Level 1

      Hi All,

       

         Defined checkbox in datagrid using this example:

       

          http://blogs.adobe.com/aharui/CheckBoxDataGrid/CheckBoxDataGridApp.swf

       

        The code is which is mentioned is working fine but I'm trying to fetch all the selected checkboxes when user selects 'selected items' button.

       

       

       

       

      <local:CheckBoxDataGrid id="dg" initialize="dg.dataProvider=arr"

      allowMultipleSelection="

      true">

       

       

       

       

       

       

       

       

       

      <local:columns>

       

       

      <mx:DataGridColumn dataField="firstName" headerText=" " width="20" sortable="false" itemRenderer="CheckBoxRenderer" >

       

       

      </mx:DataGridColumn>

       

       

      <mx:DataGridColumn dataField="firstName" headerText="First Name"

      />

       

       

      <mx:DataGridColumn dataField="lastName" headerText="Last Name"

      />

       

       

      </local:columns>

       

       

      </local:CheckBoxDataGrid>

       

       

       

      <mx:Button label="show selected items" click="showSelectedItems()"/>

       

      Can anyone please let me know, how to iterate CheckBoxDataGrid for finding selected check box elements. Here I'm adding my code for your reference....

       

      Thanks in advance.

       

      Regards,

      Sharath.