Jan 26, 2010, 5:58 PM
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
Can aybody help..
Thanks,
sameera
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.