PDA

View Full Version : Renderer Scope Changes When Using Locked Column?



kgmoney
12 Sep 2011, 1:18 PM
Hi Guys,

Is it intentional or a bug that when I use a locked column in Ext 4.0.2 the scope of the column renderer's changes?

I am extending a grid panel. I have 4 columns, none locked. I have renderer that is defined as a member of this new class that I'm creating and have assigned this renderer to some of my columns. When I run the code everything works as expected and in the renderer I can refer to the class instance with 'this'.

Now, if I make one of my columns locked (the first one) and run it, the scope changes and 'this' now refers to some auto generated grid panel.

I see what you've done in terms of laying the grid out with the locked column, it seems wrong that the scope of the renderers should change. Thoughts?

Thanks,
Kevin

kgmoney
13 Sep 2011, 6:11 AM
Has anyone else seen this/know a way around it?