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 <[email protected]> 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

