Jan 18, 2010, 8:12 AM
[CLOSED] [1.0] GroupingView broken
Hi,
After some recent update, I'm getting the following error with the page below: "Ext.fly(rows[0]) is null". I think it has something to do with JsonReader and GroupingView.
Tadeusz
After some recent update, I'm getting the following error with the page below: "Ext.fly(rows[0]) is null". I think it has something to do with JsonReader and GroupingView.
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" 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 runat="server">
<title>GridPanel GroupingView with EnableRowBody - Ext.NET Examples</title>
<link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" />
<ext:Store ID="store" runat="server" RemoteSort="true">
<Proxy>
<ext:HttpProxy Method="GET" Url="../../Shared/PlantHandler.ashx" />
</Proxy>
<AutoLoadParams>
<ext:Parameter Name="start" Value="={0}" />
<ext:Parameter Name="limit" Value="={5}" />
</AutoLoadParams>
<Reader>
<ext:JsonReader Root="Data" TotalProperty="TotalRecords">
<Fields>
<ext:RecordField Name="Common" />
<ext:RecordField Name="Botanical" />
<ext:RecordField Name="Light" />
<ext:RecordField Name="Price" Type="Float" />
<ext:RecordField Name="Availability" Type="Date" />
<ext:RecordField Name="Indoor" Type="Boolean" />
</Fields>
</ext:JsonReader>
</Reader>
<SortInfo Field="Common" Direction="ASC" />
</ext:Store>
<ext:Viewport ID="viewPort" runat="server" IDMode="Explicit">
<Content>
<ext:FitLayout runat="server">
<Items>
<ext:GridPanel ID="grid" runat="server" StoreID="store" StripeRows="true" Height="100" AutoExpandColumn="Common" Border="false">
<ColumnModel runat="server">
<Columns>
<ext:Column ColumnID="Common" Header="Common Name" DataIndex="Common" Width="220" />
<ext:Column Header="Light" DataIndex="Light" Width="130" />
<ext:Column Header="Price" DataIndex="Price" Width="70" Align="right" Groupable="false">
<Renderer Format="UsMoney" />
</ext:Column>
<ext:DateColumn Header="Available" DataIndex="Availability" Width="95" Groupable="false" Format="yyyy-MM-dd" />
<ext:Column Header="Indoor?" DataIndex="Indoor" Width="55" />
</Columns>
</ColumnModel>
<View>
<ext:GroupingView HideGroupedColumn="true" runat="server" StartCollapsed="false" GroupTextTpl="{text}" EnableRowBody="true" ForceFit="true">
</ext:GroupingView>
</View>
<SelectionModel>
<ext:RowSelectionModel runat="server" />
</SelectionModel>
<LoadMask ShowMask="true" />
<BottomBar>
<ext:PagingToolbar runat="server" PageSize="100" StoreID="store">
</ext:PagingToolbar>
</BottomBar>
</ext:GridPanel>
</Items>
</ext:FitLayout>
</Content>
</ext:Viewport>
</form>
</body>
</html>
Regards,Tadeusz