Sep 06, 2008, 2:12 PM
[FIXED] [V0.6] TabPanel and ComboBox SelectedItem
Hello,
The SelectedItem does not stay between TabPanel tab switching:
Example.aspx:
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
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" Selectonfocus="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