Ok I got it, just using the properties function,
Thanks man
--- In [email protected], "yossi.baram" <yossi.ba...@...>
wrote:
>
> --- In [email protected], Johannes Nel <johannes.nel@>
> wrote:
> >
> Thanks man,
> Where do i place my variable exactly?
> I created the instance:
> var renderer:IFactory= new ClassFactory(cellValueRenderer);
>
> my cellValueRenderer contains in its constructor a string let say,
> how d I set it in my renderer instance?
> This is realy easy I guess, just missed that,
> thanks
>
>
> > instead of passing a class factory to the render pass an instance
of
> > ifactory, passing the needed variables to the constructer of your
> custom
> > factory. then in newInstance of your ifactory set the needed
> variables on
> > that new instance. remember that your renderers will get reused,
so
> > newInstance will not be called during the same invalidation
cycles
> as set
> > data.
> >
> > On Wed, Feb 25, 2009 at 3:19 PM, yossi.baram <yossi.baram@>
> wrote:
> >
> > > Hi helper,
> > > In my columns I call my ItemRenderer "cellValueRenderer"
> > >
> > > rendererProvider = new AdvancedDataGridRendererProvider();
> > > rendererProvider.columnIndex=2;
> > > rendererProvider.renderer= new ClassFactory(cellValueRenderer);
> > > rendererProvider.dataField='col1';
> > >
> > > advancedDataGrid.rendererProviders.push(rendererProvider);
> > >
> > > I need to send to this renderer and object with properties, to
> enable
> > > me use them when I override data() function.
> > >
> > > Can It be done?
> > > The only info exposed to me in the renderer is the dataprovider
> and
> > > column name & id.
> > >
> > > Thanks a lot
> > >
> > > Jo
> > >
> > >
> > >
> >
> >
> >
> > --
> > j:pn
> > \\no comment
> >
>