jqgrid 内联编辑 beforeSubmit afterSubmit
我想让 beforeSubmit 工作。
colModel: [...],
onSelectRow : function(id)
{
alert("Hi");
},
beforeSubmit:function(postdata, formid) {
alert("In beforeSubmit");
},
我已触发 onSelectRow
但 beforeSubmit
不会触发。这适用于内联编辑模式下的网格。
我把它放在正确的地方了吗?我开始想知道这个方法是否只适用于表单编辑?
I was wanting to get beforeSubmit working .
colModel: [...],
onSelectRow : function(id)
{
alert("Hi");
},
beforeSubmit:function(postdata, formid) {
alert("In beforeSubmit");
},
I have onSelectRow
firing but beforeSubmit
won't fire. This is for a grid in inline edit mode.
Have I got it in the right place? I'm beginning to wonder if this method is only for form edits?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
beforeSubmit 仅在使用 表单编辑。您没有描述在将数据发送到服务器之前要执行哪种工作,但我想您可以使用 serializeRowData 事件在您的情况下。
beforeSubmit exists only in case of the usage of form editing. You don't described which kind of work you want to do before sending the data to the server, but I suppose you can use serializeRowData event in your case.