Open Tab through sub-tab

  1. #1

    Open Tab through sub-tab

    Hello!

    My Default page (default.aspx) has a TabPanel component with a default Home Tab, it autoload a page called home.aspx. The page home.aspx needs to add a new tab in the TabPanel located in default.aspx, but I couldn't.

    Code below (Default.aspx):

                    <ext:TabPanel ID="tpPrincial" runat="server" Height="700">
                        <Tabs>
                            <ext:Tab ID="tHome" runat="server" Header="true" Closable="false" Title="HOME"
                                Icon="house">
                                <AutoLoad ShowMask="true" Url="home.aspx" Mode="IFrame" MaskMsg="Loading">
                                </AutoLoad>
                            </ext:Tab>
                        </Tabs>
                    </ext:TabPanel>
    I need to add a new tab by the home.aspx, how can I do it???
    Last edited by geoffrey.mcgill; Jul 28, 2010 at 10:24 PM. Reason: please use [code] tags
  2. #2
    Hi poveron,

    If you just starting out, please upgrade to the v1.0 Preview release, see

    http://forums.ext.net/showthread.php...on-1.0-Preview

    The following example demonstrates adding a tab to the TabPanel, see

    https://examples1.ext.net/#/TabPanel/Basic/Add_Tabs/
    Geoffrey McGill
    Founder
  3. #3

    Open Tab through sub-tab

    Hi geoffrey,

    Thanks for the answer, I had already seen this sample, but my doubt is the following, I need to open a Tab through another tab inside other page. I am sending a attachment: Example, clicking Google Button, I will add a new tab in the superior tabcontainer, together Home Tab, did you understand?

    Thank you very much,

    Waiting a Help! :confused:
    Attached Thumbnails Click image for larger version. 

Name:	example.jpg 
Views:	87 
Size:	88.9 KB 
ID:	1429  
  4. #4
    Hi,

    From within a child page (within an iframe), you can access an instance of the parent page (using JavaScript) with the "window.parent" property.

    // from child....
    window.parent.TabPanel1.add({ ... your config here ... });
    The following forum post deals with the same topic, see

    http://forums.ext.net/showthread.php...ll=1#post37039

    Hope this helps.
    Last edited by geoffrey.mcgill; Aug 05, 2010 at 7:18 PM.
    Geoffrey McGill
    Founder

Similar Threads

  1. PDF open from TabPanel
    By moth1 in forum 1.x Help
    Replies: 4
    Last Post: May 21, 2014, 3:50 AM
  2. [CLOSED] MVC example - FX Open tab
    By borja_cic in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 29, 2011, 1:57 PM
  3. How to open a web page in a tab
    By SeshuKumar in forum 1.x Help
    Replies: 1
    Last Post: Jan 30, 2011, 6:36 PM
  4. How to open a new page
    By helpme in forum 1.x Help
    Replies: 1
    Last Post: Jan 03, 2010, 2:22 AM
  5. [OPEN] ComboBox Value
    By Timothy in forum Bugs
    Replies: 2
    Last Post: Jul 04, 2009, 5:42 AM

Tags for this Thread

Posting Permissions