page

Gets or sets the current page.

Parameters

page Number

The new page.

Returns

Number—The current page.

Example - set the current page

<script>
var dataSource = new kendo.data.DataSource({
  data: [
    { name: "Jane Doe" },
    { name: "John Doe" }
  ],
  pageSize: 1
});
dataSource.fetch(function() {
  dataSource.page(2);
  var view = dataSource.view();
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(view[0].name); // displays "John Doe"
});
</script>

Example - get the current page

<script>
var dataSource = new kendo.data.DataSource({
  data: [
    { name: "Jane Doe" },
    { name: "John Doe" }
  ],
  pageSize: 1,
  page: 2
});
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(dataSource.page()); // displays "2"
</script>
In this article