Me again :-). So I could almost fix it myself.. took me a long time though. There's only one little thing and hopefully some more experienced coder can help me out this time pleeeeease. The example posted below works fine until you sort the dataGrid by one of its columns.
[L=Here]http://16-bits.com/ItemRenderer/ItemRenderer.html[/L] is the example with ViewSource again. Anyway. How come that it is such a big deal to achieve something like this?! I guess I would have been quicker, if I had done the whole dataGrid thing in Flash by myself. What strategies do you guys out there use to solve issues like that?!? I mean how do get a picture of how a component works in its details?! Cheers, Max --- In [email protected], "m.frigge" <[EMAIL PROTECTED]> wrote: > > Hi Johan, > I tried that as well .. I also tried .styleChanged() and it doesn't do > anything. The changed text properties are only visible when the item > gets deselected!? > > Cheers, Max > > --- In [email protected], "johantrax" <johan.temmerman@> > wrote: > > > > --- In [email protected], "m.frigge" <m.frigge@> wrote: > > > > > > Hey there, > > > > > > i found some nice examples for an itemRenderer here > > > > > > <http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\ > > > tml> . > > > I tried to use one of them for an app i am developing. > > > In my case i need the colum's style to change when i select it, > but you > > > can only see the changes, after selecting another item. How can i > force > > > the item to update its style immediately? > > > > > > Here <http://16-bits.com/itemrenderer/ComputedStyles.html> is an > > > example with ViewSource enabled. > > > > > > Cheers, Max > > > > > > > Call invalidateDisplayList of the component? > > docs: > > > http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html#invalidateDisplayList() > > > > --Johan > > >

