I have a Kendo UI Grid and it\'s always starting at 0.
If I change the sort on a column then it goes to 1 and shows the other page numbers.
What am I doing w
Is your server returning the total
number of records?
If it is, define the schema
as (assuming that total_size
is where the server is returning the total number of records):
schema : {
data: "data",
total: "total_size",
model: {
...
}
}
If not, try adding to your schema
a total
function that gets it from the size of data
array:
schema : {
data: "data",
total: function(data) {
return data.data.length;
},
model: {
...
}
}