PDA

View Full Version : [CLOSED][3.0.3] GridView templates



bbg
30 Nov 2009, 8:54 PM
Hello!

Product: ExtJS
Version: 3.0.3 Public Release
Widget: GridView


Look at the GridView source. There is no templates attribute defined in the prototype.
So if you are not able to have some grids with different templates on the same page. Because templates attribute is created in the initTemplates method and it becomes global.

Patch:


Ext.override(Ext.grid.GridView, {
templates: null
});


P.S. this simple bug has eaten some hours of my time! >:)

Condor
30 Nov 2009, 11:44 PM
So if you are not able to have some grids with different templates on the same page. Because templates attribute is created in the initTemplates method and it becomes global.

Not true. initTemplates only creates templates for it's own instance and doesn't assign them to the prototype.

Can you post an example of an instance where you couldn't create 2 grids with different templates?

aconran
8 Dec 2009, 2:22 PM
Closing this ticket.