Issue with Server Paging and Filtering

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    57 posts
    Member since:
    Jun 2012

    Posted 29 Jul 2012 Link to this post

    Has anyone had an issue with the datasource calling the same paging over and over? I am trying to come up with a simplified version to test this theory. But here is my code for creating the dataset:

    ds = new kendo.data.DataSource(
             {
                 transport: {
                     read: { url: params.readPath }
                    
                 },
                 serverPaging: true,
                 serverSorting: true,
                 pageSize: 100,
                 schema: {
                     id: "c0",
                     data: "results",
                     total: "count",
     
                     parse: function(data) {
     
                         params.fields = data.fields;
     
                         params.onSuccess(params);
     
                         return data;
                     }
                 }
             });
         ds.read();

    When I run this, it just hits the service over and over for pages 1 to 100. Any ideas?
  2. Jonathan
    Jonathan avatar
    57 posts
    Member since:
    Jun 2012

    Posted 29 Jul 2012 Link to this post

    I should also note that if I take the lines for the server paging and filtering out, it only hits the service once.
  3. Kendo UI is VS 2017 Ready
Back to Top