"add tabs" functionality in a masterpage.

  1. #1

    "add tabs" functionality in a masterpage.

    I have created a navigation menu using MenuPanel in a master page. I wonder if i can click the menu items to add tab which shows the child pages?

    thank you
    Ozay B.
  2. #2
  3. #3

    add tab functionality in masterpage

    Demo is not used in a master page. Let me explain more. Let say have a master page and 2 pages.I create a menupanel in master page to open pages on tabpanel
     <ext:Panel runat="server" Width="350" Layout="Accordion" Split="true"  AutoHeight="true"
                            ID="Panel1" Margins="5 0 5 5" DefaultBorder="false">
     <ext:MenuPanel ID="MenuPanel1" runat="server" Width="200" Title="Menu 1" Closable="true">
                                    <Menu ID="Menu1" runat="server">
                                            <ext:MenuItem ID="MenuItem1" runat="server" Text="PAge 1">
                                                    <Click Handler="addTab(#{TabPanel1}, 'idClt', 'Page1.aspx');" />
                                            <ext:MenuSeparator />
                                            <ext:MenuItem ID="MenuItem2" runat="server" Text="PAge 2">
                                                  <Click Handler="addTab(#{TabPanel1}, 'idGgl', 'Page2.aspx');" />
                      <ext:TabPanel ID="TabPanel1" runat="server" Region="Center" Width="700px" Height="700" />
    in this block of code, when i click to a menu item, it shows menupanel too. It should show the only content of page1 or page2.
    How can i create the menupanel not to show the same menupanel in tabpanel?

    thank you.
  4. #4
    Use different master page for Page1 and Page2, if some content from master page is not requied for Page1/Page2 then why do you use that master page for those pages
  5. #5
    Yes. You are right. why not use different master page.!

    thank you so much

Similar Threads

  1. [CLOSED] How does "MaskCls" work for "AutoLoad" mask in panel control
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 19, 2012, 12:09 PM
  2. Replies: 1
    Last Post: Jun 26, 2012, 11:29 AM
  3. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  4. Replies: 4
    Last Post: Oct 11, 2011, 2:42 AM
  5. Replies: 2
    Last Post: Jun 26, 2011, 1:59 AM

Posting Permissions