Dec 13, 2010, 12:55 AM
how to close the tabpanel's tab?
hi,
how to use the menu to close the tab of the tabpanel?
example: close this tab,close other tab, close all closable tab ...
who can help me...
use the menu to close the tab...
like :
how :
how to use the menu to close the tab of the tabpanel?
example: close this tab,close other tab, close all closable tab ...
who can help me...
use the menu to close the tab...
like :
<ext:TabPanel ID="tplBody" runat="server" ActiveTabIndex="0" Border="false" Title="Center" EnableTabScroll="true">
<Listeners>
<ContextMenu Handler="#{MOper}.tab = tab; #{MOper}.showAt(e.getPoint()); setItemId(#{tplBody}.itemId)"/>
</Listeners>
</ext:TabPanel>
<ext:Menu runat="server" ID="MOper">
<Items>
<ext:MenuItem ID="closeTab" runat="server" Text="Close Tab" Icon="Add">
<DirectEvents>
<Click OnEvent="Close_Tab">
<ExtraParams>
<ext:Parameter Mode="Raw" Name="itemId" Value="getItemId()"></ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents>
</ext:MenuItem>
<ext:MenuItem ID="closeOtherTab" runat="server" Text="Close OtherTabs" Icon="Add">
<DirectEvents>
<Click OnEvent="Close_OtherTabs">
</Click>
</DirectEvents>
</ext:MenuItem>
<ext:MenuItem ID="closeAllTab" runat="server" Text="Close AllTabs" Icon="Anchor">
<DirectEvents>
<Click OnEvent="Close_AllTabs">
</Click>
</DirectEvents>
</ext:MenuItem>
</Items>
</ext:Menu>
how :
public void Close_OtherTabs(object sender, DirectEventArgs e)
{ }
Last edited by zg_ivan; Dec 13, 2010 at 5:27 AM.