Mar 01, 2011, 12:09 PM
Remote Filter with HttpProxy won't page and sort
hi,
i got the remoteFilter Example: https://examples1.ext.net/#/GridPanel/...ilters_Remote/
with a httpProxy instead of a PageProxy, but with httpProxy, paging and sorting won't work ? Filtering is working fine
THX for help BLOZZY
i got the remoteFilter Example: https://examples1.ext.net/#/GridPanel/...ilters_Remote/
with a httpProxy instead of a PageProxy, but with httpProxy, paging and sorting won't work ? Filtering is working fine
<ext:Store ID="Store2" runat="server"
RemoteSort="true"
RemotePaging="true"
EnableViewState="true"
OnRefreshData="Store2_RefreshData"
OnBeforeStoreChanged="Store2_BeforeChanged"
OnAfterStoreChanged="Store2_AfterChanged"
OnBeforeRecordInserted="Store2_BeforeInserted"
OnBeforeRecordUpdated="Store2_BeforeUpdated"
OnBeforeRecordDeleted="Store2_BeforeDeleted"
RefreshAfterSaving="None" >
<Proxy>
<ext:HttpProxy runat="server" Method="POST" Url="RefObjectsController.ashx" />
</Proxy>
<Reader>
<ext:JsonReader IDProperty="Projektnummer" TotalProperty="total" Root="data" >
<Fields>
var limit = e.Limit;
if ((e.Start + e.Limit) > data.Count)
{
limit = data.Count - e.Start;
}
List<REF_object> rangeData = (e.Start < 0 || limit < 0) ? data : data.GetRange(e.Start, limit);
e.Total = (Store2.Proxy.Proxy as PageProxy).Total;
this.GridPanel2.GetStore().DataSource = rangeData;
the Grid Panel makes a scroll bar instead.THX for help BLOZZY
Last edited by geoffrey.mcgill; Feb 06, 2015 at 11:48 PM.