Mar 07, 2008, 5:28 AM
[FIXED] TabPanel State in UserControl
Hi,
I am monitoring your releases of Coolite controls, and i think you are doing an excellent job here in wrapping ExtJs for asp.Net.
Currently I'm working with the Coolite TabPanel (0.4.0.6901) and i think i found a bug that i would like to share.
<U>Description:</U>
When placing the TabPanel inside a usercontrol the state of the tabpanel is not saved across postbacks.
<U>Example code:</U>
<cool:ScriptManager runat="server" ID="ScriptManager1" />
<cc:UserControl ID="uc" runat="server" />
<cool:TabPanel runat="server" ID="tabpanel" Width="300" ActiveTab="0" Height="200" AutoPostBack="true">
<Items>
<cool:Tab Title="tab1" runat="server" ID="tab1">
<Content>Content1</Content>
</cool:Tab>
<cool:Tab Title="tab2" runat="server" ID="tab2">
<Content>Content2</Content>
</cool:Tab>
</Items>
</cool:TabPanel>
In this example you see 2 tabpanels, one placed inside a usercontrol and one placed outside the usercontrol. The outer tabpanel works fine, but the tabpanel inside the usercontrol doesn't maintain it's state correctly.The usercontrol in this example contains the same TabPanel declaration as the outside declaration (seen above).
Possibly, the TabPanel control should implement INamingContainer?
Thanks,
Martijn Clarenbeek