1 Reply Latest reply on Jul 26, 2010 12:14 PM by rtalton

    Query with  Drop in Itemrenderer inside DataGrid

    kiran7881 Level 1

      I am having some data inside a DataGrid with the help of ArrayCollection as shown :

       

       

      <mx:ArrayCollection id="myAC">
              <mx:Object>
                  <mx:EmpId>Ravi</mx:EmpId>
                  <mx:Ename>Kiran</mx:Ename>
                  <mx:EmpDepartment>Varre</mx:EmpDepartment>
              </mx:Object>
             
              <mx:Object>
                  <mx:EmpId>Ravi</mx:EmpId>
                  <mx:Ename>Kiran</mx:Ename>
                  <mx:EmpDepartment>Varre</mx:EmpDepartment>
              </mx:Object>

       

      </mx:ArrayCollection>

       

      I am displaying this data inside a DataGrid as shown :

       

      <mx:DataGrid id="dataGrid"dataProvider="{myAC}" x="10" y="177" visible="true">           
      <mx:columns>
      <mx:DataGridColumn dataField="EmpId" headerText="Names" itemRenderer="mx.controls.RadioButton"/>            
      <mx:DataGridColumn dataField="Ename" headerText="Passwords"/>
      <mx:DataGridColumn dataField="EmpDepartment" headerText="CPasswords"/>
      </mx:DataGridColumn>

       

      Now my requirement is that i want to have the Column EmpId with CheckBox beside it .If i use the Above Code the
      EmpId data is not showed only a CheckBox is appearing beside .

       

      How can i have both the CheckBox and EmpId data also??
      I am thinking to use a Dummy column by Header nam as SLNO , is this correct approach .