PDA

View Full Version : Activate a Tab in gxt



sbarakat
20 Nov 2009, 1:49 AM
Hello,
I am working with a TabPanel that contains a different TabItems.

I want to move from a tab1 to a tab2 trough a button in tab1.
Can someone please give me the syntax?

Arno.Nyhm
20 Nov 2009, 2:13 AM
in the click event of this button you can set the active item with this:

TabPanel#setSelection(TabItem)

http://www.extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/widget/TabPanel.html#setSelection%28com.extjs.gxt.ui.client.widget.TabItem%29 (http://www.extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/widget/TabPanel.html#setSelection%28com.extjs.gxt.ui.client.widget.TabItem%29)

sbarakat
20 Nov 2009, 6:35 AM
It works fine:).
Thank you a lot for your support