This question is locked. New answers and comments are not allowed.
Hello,
I recently updated to the latest version (2011.2.712), and it would seem something broke. I am using custom binding with paging and am binding using the following code:
In my case, the page size is 10, the total is 150 (or anything > 10), and the results.data has a length of 10 (or whatever the page size is).
The paging works when using the older code (2011.1.414). (I see "Displaying 1-10 of 150")
Now, when I call grid.dataBind, the grid.total gets overwritten when I call grid.dataBind and I see that the total is now equal to the page size (i.e. 10) and I see "Displaying 1-10 of 10").
Am I supposed to perform this action differently with the new version?
Thanks!
I recently updated to the latest version (2011.2.712), and it would seem something broke. I am using custom binding with paging and am binding using the following code:
var jqxhr = $.ajax({ url: requestUrl, type: "POST", cache: false, data: JSON.stringify(dataToSend), datatype: "json", contentType: "application/json; charset=utf-8", success: function (results) { if (results.data != null) { grid.total = results.total; grid.dataBind(results.data); } } });In my case, the page size is 10, the total is 150 (or anything > 10), and the results.data has a length of 10 (or whatever the page size is).
The paging works when using the older code (2011.1.414). (I see "Displaying 1-10 of 150")
Now, when I call grid.dataBind, the grid.total gets overwritten when I call grid.dataBind and I see that the total is now equal to the page size (i.e. 10) and I see "Displaying 1-10 of 10").
Am I supposed to perform this action differently with the new version?
Thanks!