[CLOSED] Set active tab tabpanel

  1. #1

    [CLOSED] Set active tab tabpanel

    How do i set the active tab of a GroupTabPanel into a frame?

    I'm trying this:

    tabHome.iframe.dom.contentWindow.GroupTabPanel.setActiveTab(tabHome.iframe.dom.contentWindow.pnMainDocumentos);
    Where pnMainDocumentos is the tab i want to set active.

    but it's not working...
    Last edited by Daniil; Jun 27, 2011 at 12:55 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Can you provide some more information about what "not working" means in your sample? Are you getting any JavaScript errors? When you tested in Firefox with Firebug, were any errors, exceptions or messages logged?

    Does the following sample help?

    https://examples1.ext.net/#/TabPanel...anel/Overview/
    Geoffrey McGill
    Founder
  3. #3
    No errors, it just does nothing. My application is similar to the example you showed, but it has only one group. There is a window in it with a button. When this button is clicked, i have to, for example set the panel "Tickets" active (make it visible and active on the tabgroup, even if the tab currently active is, for example, "Subscriptions").
  4. #4
    Hi,

    Well, there are groups in TabPanel.

    To set a tab within current active group:
    GroupTabPanel1.activeGroup.setActiveTab(tab);
    To set a tab within another group it, I guess, should look like this:
    GroupTabPanel1.setActiveGroup(group);
    GroupTabPanel1.activeGroup.setActiveTab(tab);

Similar Threads

  1. [CLOSED] TabPanel - perform page load only when active
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 09, 2012, 4:48 PM
  2. [CLOSED] Error when binding KeyMap to not active Panel in TabPanel
    By Fredrik in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 02, 2012, 1:52 PM
  3. Replies: 3
    Last Post: Oct 17, 2010, 1:22 PM
  4. TabPanel set active tab on server
    By logicspeak in forum 1.x Help
    Replies: 1
    Last Post: Aug 25, 2010, 4:40 PM
  5. Take value of active tab from code behind
    By thiefo in forum 1.x Help
    Replies: 1
    Last Post: Apr 09, 2010, 7:21 AM

Posting Permissions