Sep 17, 2012, 8:57 PM
[CLOSED] Hiding tab panel content dynamically
Hi I have a grouptab panel and want to hide some of the panels on some condition but the hide moethod on the panel is not hiding the panel.
How can i hide and show the tab dynamically.
.vertical-tabs.x-grouptabs-panel
{
background: transparent;
border: none;
}
.vertical-tabs.x-grouptabs-panel .x-grouptabs-panel-body
{
border-color: #ccc;
}
.vertical-tabs.x-grouptabs-panel .x-grouptabs-corner
{
background-image: none;
}
.vertical-tabs .x-grouptabs-expand
{
display: none;
}
.vertical-tabs.x-tab-panel-left ul.x-grouptabs-strip li.x-grouptabs-strip-active, .vertical-tabs.x-tab-panel-right ul.x-grouptabs-strip li.x-grouptabs-strip-active
{
-moz-border-radius: 5px 0 0 5px;
border-radius: 5px 0 0 5px;
border-color: #ccc;
}
.vertical-tabs.x-tab-panel-right ul.x-grouptabs-strip li.x-grouptabs-strip-active
{
-moz-border-radius: 0 5px 5px 0;
border-radius: 0 5px 5px 0;
}
.vertical-tabs.x-grouptabs-panel .x-tab-panel-header ul.x-grouptabs-strip a.x-grouptabs-text
{
font-size: 11px;
padding: 0 2px; /* if you don't expect to use icons for the tabs */
color: #555;
}
.vertical-tabs.x-tab-panel-right .x-tab-panel-header ul.x-grouptabs-strip a.x-grouptabs-text
{
text-align: left;
}
<ext:Window ID="winNewNotification" runat="server" Title="Dynamic tab hide"
AutoDataBind="true" Width="500" Height="550" Border="false" Closable="true" Draggable="true"
Modal="true" CloseAction="Destroy" IDMode="Static" Resizable="false" Layout="fit">
<Items>
<ext:GroupTabPanel ID="tbNewNotificationTab" Cls="vertical-tabs" runat="server" TabWidth="150"
ActiveGroupIndex="0" Padding="3" Margins="5">
<Items>
<ext:Panel runat="server">
<Items>
<ext:Panel ID="tbPnlNewNoticationGeneral" runat="server" Title="main"
Layout="FitLayout" Border="false">
<Items>
<ext:Panel runat="server" Layout="AnchorLayout" BodyPaddingSummary="10px 10px 10px 10px"
Border="false">
<Items>
<ext:TextField ID="txtNewNotificationName" IDMode="Static" runat="server" FieldLabel="sample"
AnchorHorizontal="100%" EnableKeyEvents="true" TabIndex="21" Text="" MaxLength="100">
</ext:TextField>
</Items>
</ext:Panel>
</Items>
</ext:Panel>
</Items>
</ext:Panel>
<ext:Panel runat="server" ID="hidethisgroup">
<Items>
<ext:Panel ID="hideThispanel" runat="server" Title="to be hidden">
<Items>
<ext:Panel runat="server" Layout="Fit" BodyPaddingSummary="10px 10px 0px 10px" Border="false"
ID="pnlOptionHolder" Height="400">
<Items>
</Items>
</ext:Panel>
</Items>
</ext:Panel>
</Items>
</ext:Panel>
</Items>
</ext:GroupTabPanel>
</Items>
</ext:Window>
in my javascript i am using the method App.hideThispanel.hide();
I even tried App.hidethisgroup.hide();
and yet the tab still shows. How can i hide and show the tab dynamically.
Last edited by Daniil; Sep 25, 2012 at 6:51 AM.
Reason: [CLOSED]