开发者

jqgrid inline edit beforeSubmit afterSubmit

开发者 https://www.devze.com 2023-04-07 04:53 出处:网络
I was wanting to get beforeSubmit working . colModel: [...], onSelectRow : function开发者_JAVA技巧(id)

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

精彩评论

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