jqgrid inline edit beforeSubmit afterSubmit
I was wanting to get beforeSubmit working .
colModel: [...],
onSelectRow : function开发者_JAVA技巧(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?
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.
精彩评论