如何以编程方式更改Kendo UI网格页面索引? [英] How to change Kendo UI grid page index programmatically?
本文介绍了如何以编程方式更改Kendo UI网格页面索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个kendo ui网格。假设指向网格的JS变量被称为 grid
。我怎样才能以编程方式进入第3页?感谢。
解决方案
您可以使用:
pre> grid.dataSource.query({page:3,pageSize:20});
或者:
grid.dataSource.page(3);
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.
解决方案
You might to use:
grid.dataSource.query({ page: 3, pageSize: 20 });
Documentation in here.
or:
grid.dataSource.page(3);
Documentation in here
这篇关于如何以编程方式更改Kendo UI网格页面索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文