headerRenderer probably behaves the same as
itemRenderers in that they are children of the
parent document from which they "spring"
In that case you would refer to the actionScript
in the parent document using the parent prefix
this.parentDocument.myActionScript();
HTH
[EMAIL PROTECTED] wrote:
> Hi All,
>
> I have a datagrid with a combobox in the Header field. I need to know
> how to use this as a filter. I'm working with an example of a combobox
> that acts as a filter to a datagrid. This works perfectly. I also know
> how to put the combobox in the header of a datagrid using a
> headerRenderer. I don't know how to make the filter work once its in
> the datagrid header. Part of the problem is that the combobox has to be
> in a separate MXML file. Once its separate I can't (or don't know how)
> to reference its properties in script. I'm including the code at the
> bottom. I've had to comment out a lot of the script in order to get
> this to work.
>
> Thanks in advance for any of your help.
>
> Lois
>
> **
> Main Application
>
>
>xmlns:mx="http://www.adobe.com/2006/mxml";
> xmlns:comp="*"
> creationComplete="simpletestCat.send();simpletestFood.send()" >
>
>
>
>
>
> url="assets\categorylist.xml" />
> url="assets\foodlist.xml"
> result="foodList=simpletestFood.lastResult.list.food"/>
>
>
>
>dataField="product_name"/>
>dataField="category_name"/>
>dataField="product_price"/>
>
>
>
>
>
> **
>
> **
> Combobox MXML Component named CBoxTest.mxml
>
>
> http://www.adobe.com/2006/mxml";>
>
>
>
>
>
>
>
>
>
>
>
>
>