jqgrid 修改后提交参数修改与删除

属性 serializeRowData内完成修改

serializeRowData : function(data) {

return data;

}

删除

formatoptions:{ keys:true
                                , editformbutton:false,
                                editbutton : false,
                                // For multi-column keys, we need to pass additional data to the delete function
                                delOptions:{ url:"data.cfc?method=delRecord", reloadAfterSubmit:true, closeOnEscape:true, afterSubmit: actionStatus,
                                                serializeDelData: function (postdata) {
                                                    var rowdata = $('#list').getRowData(postdata.id);
                                                    // append postdata with any information
                                                    //return {id: postdata.id, oper: postdata.oper, year: rowdata.year, spc_cd: rowdata.spc_cd};
                                                    postdata.year = rowdata.year;
                                                    postdata.spc_cd = rowdata.spc_cd;
                                                    return postdata;
                                                },

原文地址:https://www.cnblogs.com/rspb/p/5710577.html