Dec 20, 2012, 6:36 AM
[FIXED] [#81] Store Autoload property not working
Hi guys,
- RemoteSort
- PagingToolbar
Autoload is not working. But if I erase GroupField from the property spec. It works.
That happens when applying latest svn changes. Any thoughts?
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body id="theBody">
<form runat="server">
<ext:ResourceManager ID="theManager" runat="server"
IDMode="Static"
Theme="Default"
ShowWarningOnAjaxFailure="false"
DirectMethodProxy="Ignore"
ScriptMode="Debug" />
<ext:GridPanel runat="server" ID="gp" Width="300" Height="400">
<TopBar>
<ext:Toolbar runat="server">
<Items>
<ext:Button runat="server" Text="Func">
<Listeners>
<Click Handler="TestFunc();" />
</Listeners>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<Store>
<ext:Store runat="server" ID="ds" IDMode="Static" AutoLoad="false" GroupField="A" RemoteSort="true">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="A" />
<ext:ModelField Name="B" />
</Fields>
</ext:Model>
</Model>
<Proxy>
<ext:AjaxProxy Url="/test.aspx/getstore">
<ActionMethods Read="GET"></ActionMethods>
<Reader>
<ext:JsonReader TotalProperty="total" Root="data"></ext:JsonReader>
</Reader>
</ext:AjaxProxy>
</Proxy>
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
<ext:Column runat="server" DataIndex="A" Text="A" />
<ext:Column runat="server" DataIndex="B" Text="B" />
</Columns>
</ColumnModel>
</ext:GridPanel>
</form>
<script type="text/javascript">
var TestFunc = function () {App.ds.load();};
</script>
</body>
</html>
//// Server
public StoreResult GetStore()
{
return new StoreResult()
{
Data = new List<object>
{
new { A = "a1", B = "b1" },
new { A = "a2", B = "b2" },
new { A = "a3", B = "b3" }
}
};
}
When applying the following:- RemoteSort
- PagingToolbar
Autoload is not working. But if I erase GroupField from the property spec. It works.
That happens when applying latest svn changes. Any thoughts?
Last edited by Daniil; Dec 21, 2012 at 8:24 AM.
Reason: [OPEN] [#81]