Dec 03, 2008, 9:35 AM
GridPanel ComboBox Bug
Hello,
The below example and replication steps should indicate a bug with an Editable ComboBox in a GridPanel:
Example.aspx:
1. Load page
2. Click "Cool" and change to "Word" or "Word 2"
3. Works
4. Reload page
5. Click "Cool" and type "Hello World" into ComboBox
6. Value reverted back to "Cool"
Cheers,
Timothy
The below example and replication steps should indicate a bug with an Editable ComboBox in a GridPanel:
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">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Store1.DataSource = new object[] {
new object[] { "Timothy", "Cool" }
};
Store1.DataBind();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Example Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" EnablePartialRendering="True" />
<ext:ScriptManager runat="server" StateProvider="PostBack" />
<ext:Store ID="Store1"
runat="server"
AutoLoad="False">
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="Customer" />
<ext:RecordField Name="Value" />
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
<ext:GridPanel ID="GridPanel1"
runat="server"
StoreID="Store1"
AutoHeight="True"
AutoWidth="True">
<ColumnModel>
<Columns>
<ext:Column ColumnID="Customer" DataIndex="Customer" Header="Customer" />
<ext:Column ColumnID="Value" DataIndex="Value" Header="Value">
<Editor>
<ext:ComboBox runat="server"
Editable="True">
<Items>
<ext:ListItem Text="Word" Value="Word" />
<ext:ListItem Text="Word 2" Value="Word 2" />
<ext:ListItem Text="Word 3" Value="Word 3" />
</Items>
</ext:ComboBox>
</Editor>
</ext:Column>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel runat="server" />
</SelectionModel>
</ext:GridPanel>
</form>
</body>
</html>
Replication steps:1. Load page
2. Click "Cool" and change to "Word" or "Word 2"
3. Works
4. Reload page
5. Click "Cool" and type "Hello World" into ComboBox
6. Value reverted back to "Cool"
Cheers,
Timothy