PDA

View Full Version : auto collapse inactive group/menu in GroupTabPanel



amarkoli
15 Jul 2012, 11:23 PM
Hi,

We are using GroupTabPanel in our project and by default all the groups are expanded. the problem is that our menu has lots of options, and a vertical scroll is created for the groups. there is +/- image to expand/collapse the groups, but that needs to be done manually. so is there any way by which by default all the groups are collapsed and just one is expanded, and when another group is clicked/selected, only that group gets expanded and all other get collapsed.
Please guide us, we are very new to using extjs, we are using extjs 4.1

Regards

Amar Koli

amarkoli
16 Jul 2012, 10:13 PM
Hi,

Please reply to this question, does the GroupTabPanel have this provision or is there any other way to make this change, please let us know soon.


Regards

Amar Koli

scottmartin
18 Jul 2012, 12:10 PM
In looking at the example, it uses a tree to make the selection mutually exclusive to the selection, your could loop the nodes to collapse all except the current selected.

Scott.