New to Kendo UI for jQuery? Start a free 30-day trial

Pager

fields

The Pager widget attached to the Grid.

pager

kendo.ui.Pager
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: {
    data: [
      { productName: "Tea", category: "Beverages" },
      { productName: "Coffee", category: "Beverages" },
      { productName: "Ham", category: "Food" },
      { productName: "Bread", category: "Food" }
    ],
    pageSize: 2
  },
  pageable: true
});

var grid = $("#grid").data("kendoGrid");
var pager = grid.pager;

// Access the pager widget methods
console.log("Current page:", pager.page());
console.log("Total pages:", pager.totalPages());

// Navigate to a specific page
pager.page(2);
</script>
Not finding the help you need?
Contact Support