0
是否可以在网格列的编辑选项中使用超链接?网格绑定时显示纯文本。但是当它处于编辑/添加模式时,需要将该文本转换为超链接(打开弹出窗口)。我找不到在editoptions中有超链接的选项。我能够做到这一点,但我需要一个链接。有没有办法做到这一点?我有以下的代码 -编辑模式下的链接,普通模式下的纯文本
colModel: [
{ name: 'Person', index: 'PersonName', width: 70, editable: true, edittype: 'button',
editoptions: {
value: 'Select',
dataEvents: [{
type: 'click',
fn: function (elem) {
var left = (screen.width/2) - (700/2);
var top = (screen.height/2) - (550/2);
var popup = window.open("popup.htm", "popup", "resizable=1,copyhistory=0,menubar=0,width=700,height=550,left='+left+',top='+top");
popup.focus();
}
}]
}
},