to Add a tab in center is not working

  1. #1

    to Add a tab in center is not working

    Hi,

    im using BorderLayout on viewport control and in west m using menu item ,when on user click on menu item i want to open a tab in center cotrom of BorderLayout see

        <ext:Window runat="server" id="Window1" />
    
    <ext:BorderLayout ID="BorderLayout1" runat="server">
                        <North Margins-Bottom="4">
                        <ext:Panel ID="Panel1" runat="server" BodyBorder="false" Height="23">
                            <Body>
                            </Body>
                        </ext:Panel>  
    
                    <West Split="true" CollapseMode="Mini" MarginsSummary="0 0 4 4">
                        <ext:MenuPanel ID="MenuPanel1" runat="server" Width="200">
                                <Menu runat="server"> 
                                    <Items>
                                        <ext:MenuItem ID="idClt_item" runat="server" Text="Ext.NET">
                                            <Listeners>
                                                <Click Handler="addTab(#{tpMain}, 'idClt', 'http://www.ext.net');" />
                                            </Listeners>
                                        </ext:MenuItem> 
                                  </Items>
                                </Menu>
                            </ext:MenuPanel>
                    </West>
    
                    <Center MarginsSummary="0 0 4 0">
                        <ext:TabPanel ID="tpMain" runat="server" EnableTabScroll="true">
                            <Tabs>
                                <ext:Tab 
                                    ID="Tab1" 
                                    runat="server" 
                                    Title="Home" 
                                    Icon="ApplicationForm" 
                                    Border="false">
                                    <AutoLoad Url="Pages/mainBody.aspx/" Mode="IFrame" ShowMask="true" MaskMsg="Loading 'Dashboard'..." />
                                </ext:Tab>                        
                            </Tabs>
                            <Plugins>
                                <ext:TabCloseMenu ID="TabCloseMenu1" runat="server" />
                            </Plugins>
                        </ext:TabPanel>
                    </Center>
                    <East Collapsible="true" Split="true" CollapseMode="Mini" MarginsSummary="0 4 4 0">
                        <ext:Panel runat="server" Width="225" Border="false">
                            <Body>
                           </Body>
                        </ext:Panel>
                    </East>
                </ext:BorderLayout>
    whats wrong in it ? y addtab is not wokring?

    Can aybody help..

    Thanks,

    sameera
    Last edited by geoffrey.mcgill; Feb 22, 2011 at 5:07 AM.

Similar Threads

  1. Replies: 2
    Last Post: Jun 23, 2012, 2:17 PM
  2. Center Position
    By Kipetcoff in forum 1.x Help
    Replies: 2
    Last Post: Mar 23, 2012, 10:02 AM
  3. Replies: 3
    Last Post: Feb 21, 2012, 7:46 AM
  4. How to center a label?
    By chearner in forum 1.x Help
    Replies: 6
    Last Post: Dec 28, 2011, 4:21 AM

Posting Permissions