Greate, its working like a charm..
The solution was to put the renderer inside the AdvancedDataGrid tag
in the mxml.
I created an IFactory var:
public var renderer_:IFactory= new ClassFactory(ItemRenderer);
Initialized it with the relevant property I need to send
to the renderer:
(renderer_ as ClassFactory).properties =
{tableDataProvider_:tableDataProvider};
and then put this variable inside the AdvancedDataGrid tag:
<mx:AdvancedDataGrid id="adg" styleName="grid" height="100%"
itemRenderer="{renderer_}">
Thanks Amy, your article helped me grasping things,
and Gregorg of course :))))
Jo
--- In [email protected], "Amy" <amyblankens...@...> wrote:
>
> --- In [email protected], "yossi.baram" <yossi.baram@> wrote:
> >
> > Thanks,
> > Well, I tried extending AdvancedDataGridItemRenderer &
> > IDropInListItemRenderer
>
> Try reading my series on how to make AdvancedDataGrid accept background
> colors in the styleFunction
>
> http://flexdiary.blogspot.com/2008/06/musings-on-advanceddatagrid-part-2.html
>