Content-Length: 81975 | pFad | http://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/pagesize

pageSize - API Reference - Kendo UI DataSource - Kendo UI for jQuery

pageSizeNumber

The number of data items per page. The property has no default value. Therefore, to use paging, make sure some pageSize value is set.

The data source will page the data items client-side unless the serverPaging option is set to true.

Example - set the page size

<script>
var dataSource = new kendo.data.DataSource({
  data: [
    { name: "Tea", category: "Beverages" },
    { name: "Coffee", category: "Beverages" },
    { name: "Ham", category: "Food" }
  ],
  page: 1,
  // a page of data contains two data items
  pageSize: 2
});
dataSource.fetch(function(){
  var view = dataSource.view();
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(view.length); // displays "2"
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(view[0].name); // displays "Tea"
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(view[1].name); // displays "Coffee"
});
</script>
In this article
pageSize
Not finding the help you need?
Contact Support








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/pagesize

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy