PDA

View Full Version : Is it possible to extend the gridpanel and add my own config parameter



Yemi
14 Aug 2013, 3:25 AM
If so, how e.g I want to add a config parameter size which will take an integer.

slemmon
15 Aug 2013, 4:10 PM
You can extend a class (including Grid) to get a custom class if you'd like. For an example check out the source for EditorGrid.
http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.grid.EditorGridPanel

Thats' probably as good an example as you can get showing how you can add additional properties / methods to an extended Grid class.

Yemi
16 Aug 2013, 1:26 PM
Thanks