0 Replies Latest reply on Jun 18, 2008 5:12 AM by omgmatt

    how to give itemRenderer access to more data

      I'm using an itemRenderer on a dataGridColumn with a dataField that's an XMLNode. I can successfully manipulate the cell based on the dataField property. However, I want to manipulate the cell based on a different XMLNode (in the same XMLList). I want to do something like:

      <mx:DataGridColumn headerText="Column name" dataField="@showtext" highlightCell="@highlightCell" itemRenderer="CustomBackground"/>

      In the itemRenderer I can access data[DataGridListData(listData).dataField and data[DataGridListData(listData).columnIndex, but nothing else.

      I don't know what functions I have to overload, how to overload them, or where they need to be overloaded. I've been stuck on this for a while so some help would be appreciated. Thanks.