Jul 19, 2013, 2:46 PM
[CLOSED] Client side error databinding Store
Hi,
I'm receiving a JS error when data binding a Store on the server. The error is thrown when a typed DataTable doesn't contain any records. There's no error when at least one row is present in the data source. I'm not sure where to look for clues or pointers. A nearly identical set up works for me with no issues whatsoever. Please advise if more info is required here.
I'm receiving a JS error when data binding a Store on the server. The error is thrown when a typed DataTable doesn't contain any records. There's no error when at least one row is present in the data source. I'm not sure where to look for clues or pointers. A nearly identical set up works for me with no issues whatsoever. Please advise if more info is required here.
protected void Page_Load(object sender, EventArgs e)
{
if (ExtNet.IsAjaxRequest) return;
var dataSource=GetTypedDataTable();
this.Store1.DataSource = dataSource;
this.Store1.DataBind();
}
<Store>
<ext:Store runat="server" ID="Store1" PageSize="20">
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="ID">
<Fields>
<ext:ModelField Name="ID" Type="Int" />
<ext:ModelField Name="Message" Type="String" />
<ext:ModelField Name="CreatedDate" Type="Date" RenderMilliseconds="true" />
</Fields>
</ext:Model>
</Model>
<Sorters>
<ext:DataSorter Property="CreatedDate" Direction="DESC" />
</Sorters>
</ext:Store>
</Store>
Last edited by Daniil; Jul 19, 2013 at 5:13 PM.
Reason: [CLOSED]