Remote Filter with HttpProxy won't page and sort

  1. #1

    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

    <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.

Similar Threads

  1. [CLOSED] Remote sort with LinqDataSource not working
    By PhilG in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Mar 06, 2012, 3:15 PM
  2. Remote Filter with HttpProxy
    By mkshields9w57 in forum 1.x Help
    Replies: 1
    Last Post: Oct 24, 2011, 2:50 PM
  3. Remote GridFilters via HttpProxy
    By Thinjon100 in forum 1.x Help
    Replies: 1
    Last Post: Sep 19, 2011, 1:39 PM
  4. [CLOSED] Remote Filter using Httpproxy
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 29, 2010, 8:08 AM
  5. Replies: 3
    Last Post: Jun 25, 2010, 9:06 AM

Posting Permissions