Results 1 to 2 of 2

Thread: TabIndex of the selected tab in tabpanel

  1. #1

    Default TabIndex of the selected tab in tabpanel

    Hi..

    I am trying to create an listener for tabpanel on Onselect event when a tab is selected. And I using below code.

    It always alerts as 1, when any tab is selected. Can anyone please suggest any input on this.

    Code:
    eventTab.addListener(Events.Select, new Listener<TabPanelEvent>() {
                      public void handleEvent(TabPanelEvent be) { 
                               Window.alert(" selected tab index is"+be.getIndex); 
                               } 
               });
    Thank you.

  2. #2

    Default

    I have also tried.
    Code:
    be.getSelectedItem().getTabIndex()
    still I keep getting 1 as the tabindex fro selected tab.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •