[flexcoders] datagroup, renderers, and width: whose in control?

2010-04-23 Thread gwfong65
Does anyone know if a datagroup's width is based upon the width of the renderer instances being called or if the renderer is constrained by the width of the datagroup? I'm having a hard time understanding if the tail wags the dog or is it the other way around.

[flexcoders] clearing state from item renderers for advanceddatagrid

2010-03-26 Thread gwfong65
In my code, I found out that I need to clear state in my item renderers because they are reused. I was wondering if folks could suggest tips on exactly what needs to be reset every time. In my case, I was adding some children. So to clear state I removed them before adding different ones. But

[flexcoders] clearing state from item renderers for advanceddatagrid

2010-03-26 Thread gwfong65
I just realized what it means when an item renderer gets reused in a grid. What exactly do I need to do to remove any preexisting state from the item renderer? In essence, I'm want to come up w/ a "clear old state" method but being new to flex, I'm not sure what I need to do. One thing I do do