totalPages

Gets the number of available pages.

Returns

Number—The available pages.

Example - get the total number of pages

<script>
var dataSource = new kendo.data.DataSource({
  data: [
    { name: "Jane Doe", age: 30 },
    { name: "John Doe", age: 33 }
  ],
  pageSize: 1
});
console.log(dataSource.totalPages());   // displays "2"
</script>
In this article
Not finding the help you need? Improve this article