您的位置:首页 > 其它

JQGrid编辑要显示单元格内容

2012-12-10 10:06 337 查看
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>";

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: