zoukankan      html  css  js  c++  java
  • 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;
                                                    },

  • 相关阅读:
    Python 的并发编程
    django搭建一个小型的服务器运维网站-拿来即用的bootstrap模板
    python 文件目录遍历
    Ubuntu 18.04 登陆界面进去,几秒之后自动退出到登陆界面
    terminal 快捷操作
    Boost 源代码交叉编译
    tar 常见操作
    vim 快捷设置和操作
    Visual Studio Linker选项设置
    5. glutInitDisplayMode 函数理解
  • 原文地址:https://www.cnblogs.com/rspb/p/5710577.html
Copyright © 2011-2022 走看看