[CLOSED] TabPanel Show/Hide Panel

  1. #1

    [CLOSED] TabPanel Show/Hide Panel

    Hi,
    I am having an issue with a panel show and hide. Despite closeaction=Hide, 2nd time when I show the panel, I get as panel2.tab is undefined. I am on version 2.0.4522.22728

     <ext:TabPanel Width="300" Height="200" runat="server">
                <Items>
                    <ext:Panel runat="server" Title="Panel1" ID="panel1"></ext:Panel>
                    <ext:Panel runat="server" Title="Panel2" ID="panel2" Hidden="true" Closable="true" CloseAction="Hide"></ext:Panel>
                </Items>
                <Buttons>
                    <ext:Button Text="Show Panel2" OnClientClick="App.panel2.show();App.panel2.tab.show();"></ext:Button>
                   
                </Buttons>
            </ext:TabPanel>
    Last edited by Daniil; Jul 02, 2012 at 3:39 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please remove both Hidden="true" and CloseAction="Hide" properties.
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by amitpareek View Post
    Hi,
    I am having an issue with a panel show and hide. Despite closeaction=Hide, 2nd time when I show the panel, I get as panel2.tab is undefined. I am on version 2.0.4522.22728

     <ext:TabPanel Width="300" Height="200" runat="server">
                <Items>
                    <ext:Panel runat="server" Title="Panel1" ID="panel1"></ext:Panel>
                    <ext:Panel runat="server" Title="Panel2" ID="panel2" Hidden="true" Closable="true" CloseAction="Hide"></ext:Panel>
                </Items>
                <Buttons>
                    <ext:Button Text="Show Panel2" OnClientClick="App.panel2.show();App.panel2.tab.show();"></ext:Button>
                   
                </Buttons>
            </ext:TabPanel>
    I have tried with latest version too now. Still same issue.
  4. #4
    Quote Originally Posted by geoffrey.mcgill View Post
    Hi,

    Please remove both Hidden="true" and CloseAction="Hide" properties.
    what if I want to keep it hidden hy default and show it on button click.

    I have issue when I show 2nd time. 1st time it works perfect. I don't wanna close.l, I wanna hide it.
  5. #5
    Please see the sixth tab here:
    https://examples2.ext.net/#/TabPanel/Basic/Show_Hide/

    As far as I can understand the requirement it should suite your needs.
  6. #6
    Quote Originally Posted by Daniil View Post
    Please see the sixth tab here:
    https://examples2.ext.net/#/TabPanel/Basic/Show_Hide/

    As far as I can understand the requirement it should suite your needs.
    You can close this. I was approaching it the wrong way.

Similar Threads

  1. Replies: 2
    Last Post: Dec 19, 2011, 1:53 PM
  2. [CLOSED] TabPanel - Tab hide/show Unnecessary postbacks
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 22, 2011, 8:59 AM
  3. [CLOSED] Show Hide Grid Panel from runtime
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 23, 2011, 6:32 PM
  4. Show and Hide Panel with javascript in Chrome
    By Paul D in forum 1.x Help
    Replies: 5
    Last Post: Nov 11, 2010, 7:53 PM
  5. TabPanel + Dynamic tab show/hide
    By reinaldo.designerdigital in forum 1.x Help
    Replies: 3
    Last Post: Feb 06, 2009, 12:26 PM

Posting Permissions