[flexcoders] Re: Force DataGrid item to update style

2007-12-18 Thread m.frigge
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 please. The example posted below works fine until you sort the dataGrid by one of its columns.

[flexcoders] Re: Force DataGrid item to update style

2007-12-17 Thread ben.clinkinbeard
Its because you're calling your compute function from the change event. Try calling it from itemFocusIn or itemClick or something. HTH, Ben --- In flexcoders@yahoogroups.com, m.frigge [EMAIL PROTECTED] wrote: Hey there, i found some nice examples for an itemRenderer here

[flexcoders] Re: Force DataGrid item to update style

2007-12-17 Thread johantrax
--- In flexcoders@yahoogroups.com, m.frigge [EMAIL PROTECTED] 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

[flexcoders] Re: Force DataGrid item to update style

2007-12-17 Thread m.frigge
Hey Ben, thx for your answer, but it is doing exactly the same when I use the itemClick event and when I use itemFocusIn it doesn't do anything at all?! I reckon I either have to customize the column or the Renderer.. something like that. But I don't have enough experience to figure out what and

[flexcoders] Re: Force DataGrid item to update style

2007-12-17 Thread m.frigge
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 flexcoders@yahoogroups.com, johantrax [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, m.frigge