In case of itemRenderers, when you scroll the renderers are recycled and they dont quite remember their states, one way to get over this problem is to override the public setter data in your itemRenderer code

something like:

override public function set data( value:Object):void
{
}

Hope this helps
Harish

On 10/9/06, Jesús Iglesias < [EMAIL PROTECTED]> wrote:

I have a datagrid in which I have an itemRenderer (a canvas with a text field). Depend on certain value of data, I change the background color of the canvas and the text of textfild. The problem comes when I have many records and scrollbar appears on datagrid. When scrolling the values of this itemrenderer are not updated fine, so I have wrong values. I know Flex reuses the itemrenderes, so...How to avoid this "memory effect"?
 
Thanks,
Jesus


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to