[CLOSED] Find Tab object in Tab Panel

  1. #1

    [CLOSED] Find Tab object in Tab Panel

    Hi,

    How to find the tab object in tabpanel?

    Eariler i have used the following code. Here "tabId" is Tab2.
    function GetActiveTabExtObj(tabId) {
        var tpPortal = Ext.getCmp('tpPortal');
        var activeTabId = tpPortal.getActiveTab().id;
        subTab = document.getElementById(activeTabId + '_IFrame').contentWindow.Ext.getCmp(tabId);
        return subTab;
    }
    Last edited by Daniil; Oct 25, 2013 at 3:16 PM. Reason: [CLOSED]
  2. #2
    Hi @speedstepmem4,

    Please try
    subTab = tpPortal.getActiveTab().getBody().Ext.getCmp(tabId);
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @speedstepmem4,

    Please try
    subTab = tpPortal.getActiveTab().getBody().Ext.getCmp(tabId);
    The following option should work as well, although it would depend on what the value of "tabId" is.

    subTab = tpPortal.getActiveTab().getBody().App[tabId];
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 0
    Last Post: Nov 28, 2012, 8:08 AM
  2. Replies: 4
    Last Post: Oct 01, 2012, 9:58 AM
  3. Replies: 1
    Last Post: Nov 11, 2010, 8:15 PM
  4. [CLOSED] [1.0] Render Panel to a non-ext object
    By Patrick in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 10, 2010, 12:13 PM
  5. [CLOSED] how to find no of rows in grid panel?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 17, 2009, 9:50 AM

Tags for this Thread

Posting Permissions