This content has been marked as final. Show 4 replies
It is possible to get to the labelFunction. It's messy, but possible. First, your itemRenderer has to implement IDropInListItemRenderer. Most controls implement it, but containers do not. You want to use the listData property which is part of the IDropInListItemRenderer definition. Look it up in the docs and there are some examples about it.
The listData contains the property owner, which is the DataGrid in which the itemRenderer is being used. It also tells you the column index. Knowing the DataGrid and the column index, you can get the DataGridColumn and from that, get the labelFunction.
And that would help me to get to the return value of the labelFunction?
Is there an specific example for this one?
Once you get the DataGridColumn you can use the function like this (assume col is the specific DataGridColumn):
var s:String = col.labelFunction( data, col );
Ok that will do it thanks.