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

  • 相关阅读:
    C++类型前置声明
    Qt 引用头文件 QT_BEGIN_NAMESPACE QT_END_NAMESPACE
    Qt emit的使用
    特定于类的内存管理---《C++必知必会》 条款36
    C++深入理解虚函数
    使用网页预加载顶部进度条
    简单读取 properties文件
    win2012r2 关闭中英文悬浮小方框显示
    bootstrap的Alerts中 可以放置p标签 设置 align="center" 用来设置文本居中
    char和String 在jsp java代码中与jstl代码中的区别
  • 原文地址:https://www.cnblogs.com/rspb/p/5710577.html
Copyright © 2011-2022 走看看