且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jqGrid将URL设置为自定义按钮

更新时间:2022-12-10 19:09:55

已将自定义按钮添加到导航器栏中,以符合 jQuery.ajax 将任何信息发送到servlet或分配新值到location.href以重定向到另一个URL.如果需要,您可以使用

Custom button added to navigator bar with respect of navButtonAdd allows to execute any JavaScript code when the user click on the button. So you can implement any action which you need. For example you can use jQuery.ajax to sent any information to the servlet or to assign new value to location.href to redirect to another URL. If needed you can get the rowid of currently selected row using the code like

var rowid = $(this).jqGrid("getGridParam", "selrow");