How to expand row in a grid using rowexpander plugin Extjs 4.1.1
- by Waseem
How to expand row in a grid using rowexpander plugin? I am using the following code in my controller
'editbasicinfotitlegrid gridview' : {
afterrender:this.expandAll
}
expandAll: function(){
var titlesGrid = Ext.getCmp('editBasicInfoTitleGrid');
var expander = titlesGrid.getPlugin('myRowExpander');
console.log(titlesGrid.plugins[0]);
expander.toggleRow(0);
}
But this code gives me the following error
Uncaught TypeError: Cannot call method 'down' of null