0 Replies Latest reply on Oct 6, 2011 10:47 AM by miguel8312

    advance datagrid item renderer with multiple columns.

    miguel8312 Level 3

      Hello guys

      im using the advance datagrid and im in a pickle.

      i used this

       

      <mx:AdvancedDataGridColumn  headerStyleName="myHeader" headerText="+" id ="pos" textAlign="right" dataField="fgbtrnd_trans_amt"/>

       

      <mx:AdvancedDataGridColumn headerStyleName="myHeader" headerText="Grant Balance" dataField="total" textAlign="right"/>

       

      </mx:columns>

       

      <mx:rendererProviders>

      <mx:AdvancedDataGridRendererProvider

      column="{neg}" depth="1" dataField="fgbtrnd_trans_neg_amt" renderer="minusamt"/>

      </mx:rendererProviders>

       

      to put and item renderer on a column however  how can i put another item renderer on another column.

      i have tried

      <mx:AdvancedDataGridRendererProvider 
      column="{neg}" depth="1" dataField="fgbtrnd_trans_neg_amt" renderer="minusamt"/>
      column="{pos}" depth="1" dataField="fgbtrnd_trans_neg_amt" renderer="minusamt"/>
      </mx:rendererProviders>
      

      but i get an error? how can i expand my current renderer to other columns or how can i add another renderer.

      any help greatly appreciated.

      Miguel