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], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Even headerRenderers get recycled.
> 
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, May 06, 2008 2:23 PM
> To: [email protected]
> 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