属性 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;
                                                },

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-07-31
  • 2021-07-22
猜你喜欢
  • 2021-08-10
  • 2021-09-16
  • 2021-08-07
  • 2021-12-23
  • 2021-04-03
  • 2022-12-23
相关资源
相似解决方案