But I am using checkbox (is that what you meant?) in the header. Does 
it have any kind of data to base the checkbox's state on?

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you look at the comboboxheaderrenderer example you'll see that it
> always pulls its data from the column so the renderer can be 
recycled or
> recreated.  It does not store state within itself
> 
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, May 06, 2008 3:17 PM
> To: [email protected]
> Subject: [flexcoders] Re: Strange behavior
> 
>  
> 
> I see. I am looking into your blog to find the answer but I can't 
> find it. Could you please help me to understand what do I do with 
> recycling problem?
> 
> Thanks alot.
> 
> --- In [email protected] <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > Even headerRenderers get recycled.
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected] <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:[email protected] <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of markgoldin_2000
> > Sent: Tuesday, May 06, 2008 2:23 PM
> > To: [email protected] <mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] Strange behavior
> > 
> > 
> > 
> > I am trying to implement a checkbox as a headerRenderer:
> > public class CheckBoxHeaderRenderer extends CheckBox
> > {
> > private var _parentGrid:DataGrid = new DataGrid();
> > public function CheckBoxHeaderRenderer()
> > {
> > super();
> > selected = true;
> > addEventListener("click", clickHandler);
> > } 
> > override protected function clickHandler
> > (event:MouseEvent):void
> > {
> > super.clickHandler(event);
> > parentGrid.dataProvider[0].processorder = 10;
> > }
> > public function set parentGrid(value:DataGrid):void
> > {
> > _parentGrid = value;
> > }
> > public function get parentGrid():DataGrid
> > {
> > return _parentGrid;
> > }
> > }
> > That works fine except that when I click on a checkbox it does 
not 
> > lose it "check" mark. Commenting out:
> > parentGrid.dataProvider[0].processorder = 10;
> > will resore checkbox's behavior. What am I missing?
> > 
> > Thanks
> >
>


Reply via email to