Hey Mark, I'm struggling with itemRenderers too. First of all here <http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\ tml> is a link to Alex's blog speaking about itemRenderers and showing some nice examples. In the BlinkWhenDataChanged example he is changing Background settings. I tried to adopt his itemRenderer and change it so that it checks a data value and sets the textFormat depending on what value the data has. This <http://16-bits.com/ItemRenderer/ItemRenderer.html> is how far i came. I toggle the value on change, so when you click it the style changes. My only Problem is that it doesn't work anymore after sorting the dataGrid by one of its columns. Maybe we can work on this together :-).
Cheers, Max --- In [email protected], "oneproofdk" <[EMAIL PROTECTED]> wrote: > > 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 >

