[CLOSED] [1.0] TabPanel show hidden Panel

  1. #1

    [CLOSED] [1.0] TabPanel show hidden Panel

    Hello,

    I have the following:

    <ext:TabPanel ID="TabPanel1" runat="server">
        <Items>
            <ext:Panel ID="Tab1" runat="server" Title="Tab 1" />
            <ext:Panel ID="Tab2" runat="server" Hidden="true" Title="Tab 2" />
        </Items>
    </ext:TabPanel>
    When I execute the following on a button click:

    Tab2.setVisible(true);
    
    and
    
    Tab2.show();
    The tab does not appear? I've also tried calling TabPanel1.doLayout(); afterwards to no eval ... suggestions?

    Cheers,
    Timothy
    Last edited by Daniil; Sep 29, 2010 at 12:12 AM. Reason: [CLOSED]
  2. #2
    Hi,

    To show a pre-hidden tab, please use the addTab method of TabPanel.

    Here is an example:
    https://examples1.ext.net/#/TabPanel/Basic/Show_Hide/
  3. #3
    Hello,

    Is this to assume that an initially hidden Tab is not registered with addTab? What if I would also like to hide the Tab will I need to remove it from the TabPanel?

    What about index order? ugh nightmare :(

    Cheers,
    Timothy
  4. #4
    Hi,

    Just want to clarify some concepts

    1. TabPanel doesn't support Hidden property for tabs because all tabs except active are hidden. Therefore we don't include hidden tabs to the items collection and you have to use addTab method

    2. You can hide/unhide tab strip item using hideTabStripItem/unhideTabStripItem methods of the TabPanel

    I think that we should to change prehidden functionality (just automatically to call hideTabStripItem for initially hidden tabs after tab panel rendering)

    I will open ticket on that
    Last edited by Vladimir; Sep 27, 2010 at 5:28 PM.

Similar Threads

  1. [CLOSED] TabPanel Show/Hide Panel
    By amitpareek in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 02, 2012, 3:21 PM
  2. Show items of a panel in a tabpanel
    By therese in forum 1.x Help
    Replies: 0
    Last Post: May 31, 2012, 10:10 AM
  3. Replies: 8
    Last Post: Apr 14, 2011, 4:20 PM
  4. [CLOSED] TreePanel does not show with TopBar on Panel in a TabPanel
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 24, 2010, 6:19 PM
  5. Replies: 3
    Last Post: Aug 21, 2009, 2:24 PM

Tags for this Thread

Posting Permissions