Note: First of all, you have to add the following binding to the knockout-kendo.js file
createBinding({
name: "kendoPager",
defaultOption: DATA,
watch: {
data: function(value, options) {
ko.kendo.setDataSource(this, value, options);
}
}
});
Create a kendo datasource as below in your viewmodel,
var mediaDataSource = new kendo.data.DataSource({
data: fruits ,
pageSize: 2
});
And Provide datasource details to pager and the list view. eg below:
<div id="mediaList" data-bind="kendoListView: {
data: fruits,
dataSource: yourdatasource,
pageable: true,
selectable: 'single'
}"></div>
<div id="pager" class="k-pager-wrap" data-bind="kendoPager: { data: fruits, dataSource: yourdatasource}">