Header renderers seem to get reinitialized very frequently, whenever
anything happens to the DataGrid or the underlying dataProvider. Why,
I couldn't tell you, but I tie my headerRenderer's state to a variable
held outside of the DataGrid and dataProvider altogether. I wrote an
article a while back discussing my approach in more depth.

http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory/

HTH,
Ben

--- In [email protected], {reduxdj} <[EMAIL PROTECTED]> wrote:
>
> Don't know why, but changing my dataset in my array collection makes my 
> custom header renderer re-initialize. I have a combobox on it too an 
> it's resetting again also.  Is there a way to prevent this from
happening.
> 
> My headerRenderer implements mx.core.IFactory... Just a little confused 
> to why this happening?  And How do I avoid this?
> 
> Thanks,
> Patrick
>


Reply via email to