如何以编程方式分页到jqGrid中的下一页/上一页 [英] How to programmatically page to next/prev page in jqGrid
本文介绍了如何以编程方式分页到jqGrid中的下一页/上一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在一个jqGrid方法,该方法将跳到行的下一页/上一页. 我试图用jQuery以编程方式单击按钮本身,但尚未成功
Is there a jqGrid method that will skip to the next/prev page of rows. I was trying to programmatically click the button itself with jQuery, but didn't succeed yet
推荐答案
转到第123页:
grid = $("#grid");
grid.setGridParam({
page: 123
});
grid.trigger("reloadGrid");
注意:如果您转到没有数据的页面,则网格的行为会很奇怪.
NB: The grid behaves oddly if you go to a page for which there is no data.
这篇关于如何以编程方式分页到jqGrid中的下一页/上一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文