yfisaboy 2020-06-06
在jqGrid可以实现自定义列,比如说,某一列是“申请名称”,点击后弹出对应的“正式项目预算查看”页面。则可在定义“申请名称”列中加入如下所示处理。
renderLink方法代码如下,它的作用是,给“申请名称”列添加超链接: var renderLink = function (value, pt, record) { var vUrl = "‘VMyBudgetProjectRequestBrowser.aspx?ID=" + pt.rowId + "‘"; if (record[0] == "未发出") { var vUrl = "‘VMyBudgetProjectRequestEdit.aspx?ID=" + pt.rowId + "&JQID=jqBudgetProjectRequest‘"; return ‘<div ><a href="javascript:void(0)" onclick="javascript:openWindow(‘ + vUrl + ‘,screen.availWidth, screen.availHeight)">‘ + value + ‘</div>‘; } return ‘<div ><a href="javascript:void(0)" onclick="javascript:openWindow(‘ + vUrl + ‘,screen.availWidth, screen.availHeight)">‘ + value + ‘</div>‘; }
GPS平台、网站建设、软件开发、系统运维,找森大网络科技!
http://cnsendnet.taobao.com
来自森大科技官方博客
http://www.cnsendblog.com/index.php/?p=734