PDA

View Full Version : Ext js 4. Ext,ux.rowExpander expandrow() Method



lastevilstanding
15 Nov 2011, 9:13 PM
Hi

I am using row expander in my grid. by default i want few of my rows to be expanded.
in previous versions of ext i found something like this.

var expander = grid.plugins;
for(i = 0; i < grid.getStore().getCount(); i++) {
expander.expandRow(i);
}
how can i achieve this in ext js 4. Help me out.
Thanks in advance.

vadimv
16 Nov 2011, 12:43 AM
don't know if is the best solution but it works: panel.plugins[0].toggleRow(i) , when the expander has the index 0 in plugins

lastevilstanding
16 Nov 2011, 4:49 AM
Thanks man... its working..

lastevilstanding
16 Nov 2011, 4:50 AM
Thanks man its working..