Jan 17, 2011, 8:46 PM
ActiveTabIndex
Hello,
I have a tabpanel within a panel.
In one of the tab I have another tabpanel on the bottom side.
When I load the page I have an error about the activeIndextab = 0.
At the moment it loads the page, the second tabpanel is not loaded yet so the error.
If I don't set the activeIndexTab it works but when I click on the tab it shows nothing (blank content).
What can I do to show the content of the tab ?
Thanks.
Here a sample of code :
I have a tabpanel within a panel.
In one of the tab I have another tabpanel on the bottom side.
When I load the page I have an error about the activeIndextab = 0.
At the moment it loads the page, the second tabpanel is not loaded yet so the error.
If I don't set the activeIndexTab it works but when I click on the tab it shows nothing (blank content).
What can I do to show the content of the tab ?
Thanks.
Here a sample of code :
<ext:TabPanel ID="tabPanel1" runat="server">
<Content>
<ext:Panel ID="tab1" runat="server" Title="tab1">
<Content>
...
</Content>
</ext:Panel>
<ext:Panel ID="tab2" runat="server" Title="tab2" ActiveTabIndex="0"> // <-- here I have an error at runtime
<Content>
<ext:TabPanel ID="tabPanel2" runat="server" TabPosition="Bottom">
<Content>
<ext:Panel ID="tab21" runat="server" Title="tab21">
<Content>
...
</Content>
</ext:Panel>
<ext:Panel ID="tab22" runat="server" Title="tab22">
<Content>
...
</Content>
</Content>
</ext:Panel>
</ext:Panel>
</Content>
</ext:Panel>
</Content>
</ext:TabPanel>