--- In [email protected], "pixelgeek" <[EMAIL PROTECTED]> wrote:
>
> 
> > It sounds like maybe you're just not resetting things when the data 
> > property changes.
> 
> That may very well be the case. If it is then I am at a loss to see
> why the 12th item in a datagrid even gets styled when I style the
> second and why I would then have to reset the style when the grid gets
> drawn
> 
> It might also be the case that there a much, much different mindset
> that I need to develop when I code in Flex.
> 
> Its still very odd that I need to go to these extremes but perhaps I
> will have to redesign the logic and use one of the many cell styling
> examples that are available instead.
>

You just need to be aware that renderers get recycled, so that if you 
set something to, say, blue, when data=1 and you do that, for instance, 
in creationComplete, then that renderer is already created when you 
scroll and data=2.  If you don't react to the change in data, then it 
will stay blue.

I think you've already looked at Alex's blog, and maybe the wording 
just wasn't what you needed to see.  Here's another explanation that 
you might find useful: 
http://weblogs.macromedia.com/pent/archives/2008/03/itemrenderers_p.html

And in case you _haven't_ found Alex's blog, here it is: 
http://blogs.adobe.com/aharui/item_renderers/ (the posts at the bottom 
are most relevant to your issue).

HTH;

Amy

Reply via email to