PDA

View Full Version : [FIXED] TabPanel State in UserControl



clrnbeek
Mar 07, 2008, 6:28 AM
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

geoffrey.mcgill
Mar 07, 2008, 1:09 PM
Hi Martijn,

Thanks for letting us know about the AutoPostBack problem. I'm going to release an update (version 0.4.1) on 11-Mar-2008, which should include a fix for this bug.

Thanks as well for the feedback! I really appreciate you taking the time to notify us of any defects.

geoffrey.mcgill
Mar 08, 2008, 3:06 AM
Hi Martijn,

We have fixed the TabPanel bug. The fix will be included in the Tuesday (v0.4.1) release.