Dec 11, 2010, 10:31 AM
SetActiveTab in GroupTabPanel
Hi To All
I am using GroupTabPanel in my application.
But when I try to set activetab on click of button it gives error as
The 'ctl00_centercontentplaceholder_Panel8' item does not exist with the 'grpJawLocking' TabPanel.
coding in aspx page is as follows.
thanks in advance
Rupesh
I am using GroupTabPanel in my application.
But when I try to set activetab on click of button it gives error as
The 'ctl00_centercontentplaceholder_Panel8' item does not exist with the 'grpJawLocking' TabPanel.
coding in aspx page is as follows.
<asp:Content ID="Content2" ContentPlaceHolderID="centercontentplaceholder" Runat="Server">
<ext:TabPanel
ID="TabPanel1"
runat="server"
Title="TabPanel"
ActiveTabIndex="0"
TabAlign="Left"
TabPosition="Top"
Border="false"
Height="625"
AutoScroll="true"
BodyStyle="border:1px solid #AABBCC; border-top: none;">
<Items>
<ext:Panel
ID="TabComplaints"
runat="server"
Title="Complaints"
Icon="GroupError"
BodyStyle="background-color:#DDEEFF;"
Layout="Fit"
ButtonAlign="Center"
>
<Items>
<ext:GroupTabPanel ID="GroupTabPanel1" runat="server" TabWidth="180" Cls="vertical-tabs" AutoScroll="true" BodyStyle="border:1px solid #82ACCE;" >
<Groups>
<ext:GroupTab ID="grpJawClicking" runat="server" Cls="topbottompadding">
<Items>
<ext:Panel ID="Panel5"
runat="server"
Title="JAW CLICKING"
TabTip="JAW CLICKING"
StyleSpec="padding:5px;"
>
<Content>
<UC:JawClicking ID="ucJawClicking" runat="server" />
</Content>
</ext:Panel>
</Items>
</ext:GroupTab>
<ext:GroupTab ID="grpJawLocking" runat="server" Cls="topbottompadding">
<Items>
<ext:Panel ID="Panel8"
runat="server"
Title="JAW LOCKING"
TabTip="JAW LOCKING"
StyleSpec="padding:5px;"
>
<Items>
<ext:DisplayField ID="DispJawLocking" runat="server" FieldLabel="JawLocking" ></ext:DisplayField>
</Items>
</ext:Panel>
</Items>
</ext:GroupTab>
</items>
<Buttons>
<ext:Button ID="Button1" Text="Save And Move" runat="server">
<DirectEvents>
<Click OnEvent="SaveAndMove"></Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:panel>
</items>
</ext:tabpanel>
coding in cs file as follows
protected void SaveAndMove(object sender, EventArgs e)
{
if (GroupTabPanel1.ActiveGroupIndex == 0)
{
//GroupTabPanel1.ActiveGroupIndex = 1;
grpJawLocking.SetActiveTab(0);
//GroupTabPanel1.SetActiveGroup(1);
}
}
Is any thing wrong with coding? thanks in advance
Rupesh
Last edited by Daniil; Dec 11, 2010 at 10:55 AM.
Reason: Please use [CODE] tags