Hi,
Currently we are using the kendo grid for showing the data and retrieving the complete dataset and allowing the kendo grid to set pagination on the client side. But the dataset have been steadily growing and wanted to implement a server side paging setup.As a part of refactor process, the kendo grid is assigned a datasource with transport.read implemented as below (req will have additional parameters that will bound to the UI retrieved from $scope)
$scope.gridDataSource = new kendo.data.DataSource({
transport: {
read: function (options) {
var req = {};
req.pageNumber = '1';
req.rowCount = '20';
$http.post('custom/url', req).
then(function successCallback(response) {
console.log('Success Response');
}, function errorCallback(response) {
console.log('Error Response');
});
}
}
});
But I am not able to get the page number and the rowcount from options and how can I bind the data coming in the success callback
Would really appreciate any pointers
Thank you
YK