开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜