Hello,
I am working on binding an upshot dataSource to a kendoGrid, using Knockout-Kendo.js
I managed to display the data correctly, by manually configuring which columns to show with what fields, and the grid is refreshed when the underlying data is changed. However I am having trouble with the pagination: the grid is looking at the actual amount of data that upshot has locally, and defines its pages based on that. However, I don't want to get all the data at once with upshot, only one page at a time.
Ex. I have 15 objects on the server, and I set my pageSize in the grid to 5, as well as upshot paging to 5, but with an includeTotalCount so I get back the TotalCount=15. Now, since upshot only has 5 local entities, the grid will only display one page, with these 5 items, even if I set
Is there any way I can tell the kendoGrid dataSource to show me the page numbers based on the total number specified, even if no actual data is present? Also, how would I then be able to pass the paging information (take,skip) options down to upshot, so it can make the requests based on those filters?
Thanks,
Szilard
I am working on binding an upshot dataSource to a kendoGrid, using Knockout-Kendo.js
I managed to display the data correctly, by manually configuring which columns to show with what fields, and the grid is refreshed when the underlying data is changed. However I am having trouble with the pagination: the grid is looking at the actual amount of data that upshot has locally, and defines its pages based on that. However, I don't want to get all the data at once with upshot, only one page at a time.
Ex. I have 15 objects on the server, and I set my pageSize in the grid to 5, as well as upshot paging to 5, but with an includeTotalCount so I get back the TotalCount=15. Now, since upshot only has 5 local entities, the grid will only display one page, with these 5 items, even if I set
dataSource: {
total: dataSource.getTotalEntityCount(),
//which returns 15
pageSize: 5
}
Is there any way I can tell the kendoGrid dataSource to show me the page numbers based on the total number specified, even if no actual data is present? Also, how would I then be able to pass the paging information (take,skip) options down to upshot, so it can make the requests based on those filters?
Thanks,
Szilard