This is a migrated thread and some comments may be shown as answers.

Issue with Server Paging and Filtering

1 Answer 82 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 29 Jul 2012, 08:19 PM
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?

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 29 Jul 2012, 08:19 PM
I should also note that if I take the lines for the server paging and filtering out, it only hits the service once.
Tags
Data Source
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Share this question
or