3 Replies Latest reply on Jun 11, 2007 10:55 AM by upshotvideo

    Passing a parameter to a Item Renderer

    upshotvideo Level 1
      I have a dataGrid with about 12 columns. I want to render an image in each cell based on the value of that node. Problem is: I need the renderer to know what node to evaluate.

      <mx:DataGridColumn width="20" itemRenderer="com.apts247.www.renderers.Test" paddingLeft="0" color="#990000"/>
      <mx:DataGridColumn width="20" itemRenderer="com.apts247.www.renderers.Test" paddingLeft="0" color="#990000"/>

      When these hit the item renderer, how can i make it know what data to evaluate. I want to pass it, for example, "task_0", or "task_1"