flexigrid,根据查询字符串中传递的页码加载数据( example.com?page_no = 2 )
我有 20 行数据,起始为每页 10 行,在 Flexigrid 中显示我可以通过 Flexigrid 中给定的分页按钮导航到第二页。
我的场景是,如果用户想要编辑第二页中显示的记录,他将单击该行中的编辑按钮,他将被重定向到表单,一旦保存数据,用户必须看到同一行,即在 Flexigrid 的第二页中。
如何在flexigrid中直接加载第二页?
I have data of 20 rows, initiated as rows per page as 10, show in Flexigrid I can navigate to second page via given paging buttons in the Flexigrid.
My scenario is if the user want to edit the record displayed in the second page, he will click the edit button in that row, he will be redirected to the form, once the data is saved, user must see the same row, which is in the second page in flexigrid.
How to load the second page directly in flexigrid?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除操作后,重新加载 Flex。重新加载时将页码传递给 newp。这应该可以解决它。
我使用此方法在每次刷新后加载第一页。这应该有效。
$('#MyFlex') .flexOptions({ url: urlAction, newp: 2 }).flexReload();
after the delete action, reload the flex. While reloading pass the page number to the newp. this should solve it.
I use this method to load 1st page after every refresh. This should work.
$('#MyFlex') .flexOptions({ url: urlAction, newp: 2 }).flexReload();