1 Reply Latest reply on Mar 31, 2008 10:04 PM by sameerb

    rendererProviders in AdvancedDataGrid using Actionscript

    Pratap Reddy Level 1
      hi..
      am working with AdvancedDataGrid...
      am generating these grids at runtime...

      <mx:AdvancedDataGrid id="myADG"
      width="100%" height="100%"
      variableRowHeight="true">
      <mx:dataProvider>
      <mx:HierarchicalData source="{dpHierarchy}"/>
      </mx:dataProvider>
      <mx:columns>
      <mx:AdvancedDataGridColumn dataField="name" headerText="Name"/>
      <mx:AdvancedDataGridColumn dataField="total" headerText="Total"/>
      </mx:columns>

      <mx:rendererProviders>
      <mx:AdvancedDataGridRendererProvider
      dataField="detail"
      renderer="ChartRenderer"
      columnIndex="0"
      columnSpan="0"/>
      </mx:rendererProviders>
      </mx:AdvancedDataGrid>

      now in this code i used rendererProviders.
      using MXML we can write like this...
      bcse am generating this grid at runtime.. i need to code everything using ActionScript.
      any idea how to implement renderProviders... using actionscript??

      can any one help me how to write the above code.. just only the rendererProviders part using actionscript???

      Thanks
      Pratap