It should just be the .data property.  What did you try?  However, I'd
look at the examples on my blog (blogs.adobe.com/aharui).  You probably
don't need to use VBox which is pretty heavy.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of oneproofdk
Sent: Monday, December 17, 2007 6:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid ItemRenderes - How to access the {data}
from the datagrid

 

Hi.
In a itemrenderer I'd like to access a {data} value in a Script in the
itemrenderer. I just can't figure out how to do this.

I have an ArrayCollection as the dataprovider for the DataGrid.
In a Column, I sue a itemrenderer "status"

Inside renderer.status.as I have a VBox, with a init() function.
Inside init I'd like to test if "data.repeating" != null and if so,
set a label to a specific value, if not null, set to another value.

<vbox><script></script><label/></vbox>

Please - can anyone help me out with an example on how to accomplish
this, I hope, simple task.

(The reason for using a VBox was that I had my hopes for setting the
background color also, so if != null color=XX + text = XX etc.

Thanks for your time
Mark

 

Reply via email to