PDA

View Full Version : RowExpander in Grid



91dj85
11 May 2009, 2:20 AM
hello,

http://extjs.com/explorer/#gridplugins

in RowExpander Grid
how to expand all and collapse all with a button for example.
I use GXT-1.1.1

thank you very much

micgala
11 May 2009, 5:20 AM
Hi.

You must inherit the expandRow and collapseRow methods of the RowExpander (since they are protected).

Then you can call it in a loop, for every row in the grid:

Element row = grid.getView().getRow(e.rowIndex);
rowExpander.collapseRow(row);

Hope this helps you.

Regards,
Michel.

91dj85
11 May 2009, 6:11 AM
thank you very much
;)