pageable Boolean|Object
(default: false)
If set to true
the grid will display a pager. By default paging is disabled.
Can be set to a JavaScript object which represents the pager configuration.
Don't forget to set a pageSize, no matter if paging is performed client-side or server-side. A
pageSize
can be defined in thepageable
settings, or in the dataSource settings. If an already existing datasource instance is passed to the grid, then the pagesize option should be set in the dataSource's settings and not in thepageable
settings.
Example - enable paging
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "productName" },
{ field: "category" }
],
dataSource: [
{ productName: "Tea", category: "Beverages" },
{ productName: "Coffee", category: "Beverages" },
{ productName: "Ham", category: "Food" },
{ productName: "Bread", category: "Food" }
],
pageable: {
pageSize: 2
}
});
</script>
Related Properties
- pageable.alwaysVisible
- pageable.buttonCount
- pageable.info
- pageable.input
- pageable.messages
- pageable.messages.display
- pageable.messages.empty
- pageable.messages.page
- pageable.messages.of
- pageable.messages.itemsPerPage
- pageable.messages.first
- pageable.messages.last
- pageable.messages.next
- pageable.messages.previous
- pageable.messages.refresh
- pageable.messages.morePages
- pageable.numeric
- pageable.pageSize
- pageable.pageSizes
- pageable.position
- pageable.previousNext
- pageable.refresh
- pageable.responsive