pageSize
Returns the page size - maximum number of items allowed on one page.
Example - get the page size
<div id="pager"></div>
<script>
var dataSource = new kendo.data.DataSource({
data: [
{ productName: "Tea", category: "Beverages" },
{ productName: "Coffee", category: "Beverages" },
{ productName: "Ham", category: "Food" },
{ productName: "Bread", category: "Food" }
],
pageSize: 2
});
dataSource.read();
var pager = $("#pager").kendoPager({
dataSource: dataSource
}).data("kendoPager");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(pager.pageSize()); // displays "2"
</script>
<style>
#pager {
margin-top: 100px;
}
</style>
Returns
Number
The maximum number of items allowed on one page.