[flexcoders] Re: ItemRenderer's style is changed when scrolling DataGrid

2008-11-25 Thread Amy
--- In flexcoders@yahoogroups.com, Fu Di <[EMAIL PROTECTED]> wrote: > > hi everyone, i wrote a renderer which extends DataGridItemRenderer in DataGrid > some code below: > > override public function getTextStyles():TextFormat > { > if (!listData||this.text=="") >

[flexcoders] Re: ItemRenderer's style is changed when scrolling DataGrid

2008-11-25 Thread valdhor
You may be better off overriding the set data function in your renderer. The following is an example I have used in the past to create a linkButton in a cell if the data is greater than zero or to gray it out if it is zero: package renderers { import mx.controls.*; import mx.controls.dat