1 Reply Latest reply on Feb 8, 2010 10:07 PM by Flex harUI

    Regarding - Checkbox

    venkatsyss Level 1

      hi,

       

      My question is i used itemrenderer to include the component name checkbox.When a user is clicks a button it will select all the checkbox in the datagrid view.Please provide me the solutions.

       

      My Coding is:

       

      <mx:DataGrid id="uRequest" dataProvider="{userRequest.lastResult.users.user}"
                  itemClick="itemClickEvent(event);">
              <mx:columns>   
              <mx:DataGridColumn headerText="SlNo" dataField="Include" sortable="false">
         <mx:itemRenderer>
            <mx:Component>
               <mx:CheckBox/>

       

            </mx:Component>                       
         </mx:itemRenderer>
                 </mx:DataGridColumn>
                 <mx:DataGridColumn headerText="Sl.No" dataField="userid"></mx:DataGridColumn>
                 <mx:DataGridColumn headerText="Firstname" dataField="username"></mx:DataGridColumn>
                 <mx:DataGridColumn headerText="Lastname" dataField="useremail"></mx:DataGridColumn>
                 <mx:DataGridColumn headerText="States" dataField="userstate"></mx:DataGridColumn>
                 </mx:columns>

       

              </mx:DataGrid>

      <mx:Button label="SelectAll" click="All();">

       

      I need a function for a user is clicked a function named All().

       

      Please provide me the solutions .

       

      Thanks and Regards,

      venkat.R