Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy