PDA

View Full Version : [FIXED] [V0.6] TabPanel and ComboBox SelectedItem



Timothy
Sep 06, 2008, 3:12 PM
Hello,

The SelectedItem does not stay between TabPanel tab switching:

Example.aspx:


<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>
</head>
<body>
<p><a href="Example.aspx">Reload</a></p>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
<ext:ScriptManager ID="ScriptManager2" runat="server" />
<ext:TabPanel ID="Tabs1" runat="server" ActiveTab="1" AutoPostBack="True" AutoWidth="True" DeferredRender="True" Height="400">
<Tabs>
<ext:Tab ID="Tab1" runat="server" Title="Tab1" AutoHeight="True" AutoWidth="True">
<Content>
Tab 1
</Content>
</ext:Tab>
<ext:Tab ID="Tab2" runat="server" Title="Tab2" AutoWidth="True" Height="400">
<Content>
<ext:ComboBox ID="drpAccountType" runat="server" Editable="False" ForceSelection="True" Mode="Local" Select&#111;nfocus="True" TypeAhead="True" Width="255">
<SelectedItem Text="Customer" Value="Customer" />
<Items>
<ext:ListItem Text="Customer" Value="Customer" />
<ext:ListItem Text="Employee" Value="Employee" />
</Items>
</ext:ComboBox>
</Content>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</form>
</body>
</html>


Replication step:

1. Load page
2. Notice the ComboBox now has "Customer" selected
3. Click "Tab 1"
4. Click "Tab 2"
5. Notice the ComboBox now has nothing selected

Fails in IE6.0 and FF3.0.

Cheers,
Timothy

geoffrey.mcgill
Sep 06, 2008, 3:49 PM
I'm fixing several bugs in the <ext:ComboBox> right now. Thanks for the additional test, I'll make sure the ComboBox works properly with the your test before committing revisions to svn.

Timothy
Sep 06, 2008, 4:01 PM
Great, let me know when you commit your changes and I'll give it a whirl :)

Cheers,
Timothy

Vladimir
Sep 06, 2008, 4:55 PM
Hi Timothy,

the fix in svn. Let me know if the problem still exists for you

Timothy
Sep 06, 2008, 5:02 PM
Confirmed, thanks!