2 Replies Latest reply on Mar 11, 2008 10:20 AM by Pratap Reddy

    Facing problem with Itemrenderer in Datagrid...

    Pratap Reddy
      Hi,
      Any idea how the following code using Action script..

      <mx:DataGridColumn headerText="Online" dataField="online">
      <mx:itemRenderer>
      <mx:Component>
      <mx:CheckBox id="chkBox"/>
      </mx:Component>
      </mx:itemRenderer>
      </mx:DataGridColumn>


      As it is in actionscript....
      I dont want to create seperate component... everything i want to write in single file.
      something like...

      var dgc:DataGridColumn=new DataGridColumn();
      var chkBox:CheckBox=new CheckBox();

      Here how to add chkBox to dgc using Itemrenderer??? any idea??


      Is its possible???