I can this now :)

There's a headerItems array property on the Adv DG that I can loop and
invoke a method to tell the headerRenderers to do something...

Here's some sample code to loop through all the headerItems but only invoke
the method if the header is of a certain Renderer...

for(var intLoop:int = 0; intLoop < advancedDataGrid.headerItems[0].length;
intLoop++){
   if(advancedDataGrid.headerItems[0][intLoop] is HeaderFilterRenderer)

HeaderFilterRenderer(advancedDataGrid.headerItems[0][intLoop]).clearFilter();
}


Hope that helps someone...



Nick




2009/11/10 Nick Middleweek <n...@middleweek.co.uk>

> Hello,
>
> At the moment, we are using EventBroker.subscribe within the
> headerRenderer's of a DataGrid so they can listen out for a "CLEAR_FILTERS"
> event. This fires a function to set the textinput object to "" which is
> inside the headerRenderer.
>
> Does anyone know any other way to talk to the headerRenderer to tell it to
> do something without it having to subscribe to a custom event?
>
> I had the same problem with itemRenderers and I've overcome it by
> creating/modifying an attribute flag on the XML which I then text for on the
> itemRenderers listData setter function.
>
>
> Nick
>
>

Reply via email to