Hi gercas,
I modified the ArrayGrid sample to include 'null' values, although sorting appears to work as expected.
Example
<%@ 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)
{
if (!Ext.IsAjaxRequest)
{
this.Store1.DataSource = new object[]
{
new object[] { "3m Co", "Item1" },
new object[] { "Alcoa Inc", null },
new object[] { "Altria Group Inc" },
new object[] { "American Express Company", "Item4" },
new object[] { "American International Group, Inc.", "Item5" },
new object[] { "AT&T Inc.", "Item6" },
new object[] { "Boeing Co.", "Item7" },
new object[] { "Caterpillar Inc.", "Item8" },
new object[] { "Citigroup, Inc.", null }
};
this.Store1.DataBind();
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Simple Array Grid - Coolite Toolkit Example</title>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" />
<ext:Store ID="Store1" runat="server">
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="company" />
<ext:RecordField Name="item" Type="String" />
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
<ext:GridPanel
ID="GridPanel1"
runat="server"
StoreID="Store1"
StripeRows="true"
Title="Array Grid"
TrackMouseOver="true"
Width="600"
Height="350"
AutoExpandColumn="Company">
<ColumnModel runat="server">
<Columns>
<ext:Column ColumnID="Company" Header="Company" Sortable="true" DataIndex="company" />
<ext:Column ColumnID="Item" Header="Item" Sortable="true" DataIndex="item" />
</Columns>
</ColumnModel>
</ext:GridPanel>
</form>
</body>
</html>
Can you modify the above sample, or include a different code sample which demonstrates how to reproduce the problem?