JQgrid:从寻呼机获取操作
当在寻呼机中单击按钮时,如何获取操作(单击什么按钮)?(编辑、删除、添加...)
how can i get the action (what button was clicked) when a button is clicked in the pager?(edit, del, add...)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能指的是导航栏或导航器的按钮(请参阅http://www.trirand.com/jqgridwiki/doku.php?id=wiki:navigator)。
您可以通过至少三种不同的方式实现您想要的功能:
{add:false , edit: false, del: off}
navGrid
参数来关闭标准按钮。addfunc
、editfunc
和delfunc
。onclickSubmit
或afterSubmit
或其他一些受支持的事件(请参阅http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#events) 的添加/编辑/删除按钮单击按钮或提交时的一些附加操作。您可以选择最适合您要求的方式。
You probably means button of the navigation bar or navigator (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:navigator).
You can implement what you want with at least three different ways:
{add:false, edit: false, del: off}
parameter ofnavGrid
to switch off standard buttons.addfunc
,editfunc
anddelfunc
if you want replace the default add/edit/del functions.onclickSubmit
orafterSubmit
or some another supported events (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#events) of add/edit/del button to do some additional action on click the buttont or on submit.You can chose the way which is the best for your requirements.
您可以使用网格 onPaging 事件:
You can use the grid onPaging event:
还有 beforeRequest 和 LoadComplete 事件。对我有用的示例如下:
Also there are beforeRequest and LoadComplete events. Examples that worked for me are as follows: