If you implemet IDropInListItemRenderer, you will get passed the column
you are rendering.
 
There are examples on my blog
http://blogs.adobe.com/aharui/item_renderers/ that you might find useful

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark McCray
Sent: Wednesday, April 18, 2007 8:41 AM
To: [email protected]
Subject: [flexcoders] itemRenderer simple question



Hi there,

I'm writing a simple itemRenderer that i want to use across multiple 
columns.
The itemRenderer will look at a property of the data object that it 
receives to tell what style should be applied to the <mx:Text> object 
that will display the data.
That part is easy.
But how do I set the "text" value of the <mx:Text> to whatever the 
value of that column is?
(does that make sense?)

For example, if the column I'm in has a dataField property of 
"email", I want the itemRenderer to display the value of email -- 
without having to write data.email in the itemRenderer.

What we're really trying to do is to apply a style to the text of an 
entire row if one of the row's properties is true.
Thanks,
mark



 

Reply via email to