paginationkendo-uigridkendo-grid

How to change Kendo UI grid page index programmatically?


I have a kendo ui grid. Let's say that the JS variable pointing to the grid is called grid. How can I go to page 3 programmatically? Thanks.


Solution

  • You might to use:

    grid.dataSource.query({ page: 3, pageSize: 20 });
    

    Documentation in here.

    or:

    grid.dataSource.page(3);
    

    Documentation in here