I'm using Kendo Mobile ListView, and I have problem with pagination, first page is displayed but after that my ListView seems stuck, i.e. loader appears, but no data is added to my list, also I can see in my debugger that data was pulled from the server. Here is my code:
m_userRoutines: new kendo.data.DataSource({
serverFiltering: false,
serverPaging: true,
pageSize: 20,
transport: {
read: {
url: pub.serverUrl + "api/Statistics/GetAllRoutinesUserHasDone",
beforeSend: function (req) {
//radi uz data type json
req.setRequestHeader("Authorization", "Bearer " + app.loginToken);
},
dataType: "json"
}
},
requestEnd: function (e) {
console.log("user routines loaded", e.response);
},
schema: {
data: function (data) {
return data;
},
total: function (data) {
return m_userWorkouts.get("workoutsCount");
}
}
}),
I believe I found answer, according to Kendo Mobile documentation:
Problem with my page size is that it was too low, when I set my pageSize to 60 everything worked fine :)