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

  • 相关阅读:
    union和union all 合并查询
    c#中取整,向上取,向下取
    多个DataSet数据合并
    js未定义判断
    C# 获取时间差状态
    SQL中inner join、outer join和cross join的区别
    朗朗跄跄的受伤,跌跌撞撞的坚强
    IIS7.5 平台.NET无后缀名伪静态实现办法-服务器配置
    检查Android系统版本
    js 实现搜索功能
  • 原文地址:https://www.cnblogs.com/rspb/p/5710577.html
Copyright © 2011-2022 走看看