flexigrid绑定的时候process方法的问题
例如这么绑定
colModel: [
{ display: "序号", name: "number", width: 30, sortable: false, align: "middle" },
{ display: "客户姓名", name: "userName", width: 70, sortable: false, align: "middle", process: formartInfo },
{ display: "客户电话", name: "phone", width: 90, sortable: false, align: "middle", process: openOutPhone }
]
openOutPhone 这个方法里想要获取UserName的值,可以获取吗,怎么获取?
function openOutPhone(value, pid) {
//这里调用别的方法需要传入UserName的值
}
谢谢各位先 --------------------编程问答-------------------- 有人知道吗? --------------------编程问答-------------------- 除 --------------------编程问答--------------------
--------------------编程问答--------------------
function openOutPhone(value, pid) {
// return "<span title=\"" + value + "\">" + value + "</span>"; color:Black;
return "<span title=\"" + value + "\">" + "<a href=\"javascript:OpenPage('" + value + "','row" + pid + "')\" style=\" cursor:pointer;\">" + value + "</a>" + "</span>";
}
//弹出外呼界面
function OpenPage(phoneNo, targetId) {
var target = $("#" + targetId)[0];
var ch = $.browser.msie ? target.ch : target.getAttribute("ch");
var cell = ch.split("_FG$SP_");
alert(cell[2]);
}
function openOutPhone(value, pid) {
return "<span title=\"" + value + "\">" + "<a href=\"javascript:OpenPage('" + value + "','row" + pid + "')\" style=\" cursor:pointer;\">" + value + "</a>" + "</span>";
}
//弹出外呼界面
function OpenPage(phoneNo, targetId) {
var target = $("#" + targetId)[0];
var ch = $.browser.msie ? target.ch : target.getAttribute("ch");
var cell = ch.split("_FG$SP_");
var TeleNo = "?CalledPhone=" + phoneNo + "&Called=" + cell[2];
AgentCallOut("../AgentCtrl/AgentCallOut.aspx" + TeleNo);
}
补充:.NET技术 , ASP.NET