JQGrid编辑要显示单元格内容

来源:互联网 发布:java员工信息管理系统 编辑:程序博客网 时间:2024/05/23 01:22

   makeURL方法中可以编辑要显示的单元格内容

    colModel:  { name: "DATESOLD", index: "DATESOLD", width: "250", formatter: makeURL },     function makeURL(cellvalue, options, rowObject) {                 alert(cellvalue);//单元格值                 alert(rowObject["test"]); //单元格行数据类                 alert(options["rowId"]); //Grid类中的属性                 alert(options["colModel"]["name"]);        return "<a href='#' style='color: blue' >" + cellvalue + "</a>";    }

   

原创粉丝点击