我是初学者实际上我试图在谷歌上搜索我的要求,但我没有得到任何东西。 我的页面像一个 Kendo 网格,该网格有三列和编辑和删除按钮,第一列像链接按钮,在我的网格中有十行,我的要求是如果我单击链接按钮意味着打开新网页并单击行详细信息,我的代码喜欢,
editable : {mode : "inline" },
navigable: true,
columns: [ {
field: "SystemName",
title: "System Name",
width:"130px",
template: '<a href="\\#" class="k-Linkbutton link">#= SystemName #</a>' },
{
field: "SystemIP",
title: "System IP",
width:"100px" },
{
field: "SystemType",
title: "Type",
width:"80px",
editor: function (container, options) {
$("<input />")
.attr("data-bind", "value:SystemType")
.appendTo(container)
.kendoDropDownList({
dataSource: [ { text: "--Select--" ,value: "0"},{ text: "PC" ,value: "1"},{ text: "LAPTOP" ,value: "2" }],
dataTextField: "text",
dataValueField: "text"
}); }},
{
field: "OSKey",
title: "OS Key",
width:"200px"
},
{
command: ["edit","destroy"],
title: " ",
width: "190px"
}
]
如何打开新网页,我知道window.open("aaa.aspx")这是一种方法,但我不知道如何实现, 提前致谢!!!
最佳答案
template: '<a href="\\#" onclick="New()" class="k-Linkbutton link">#= SystemName #</a>' }
Function New()
{
Window.open("Welcom.aspx")
}
关于javascript - 如何在 asp 中的剑道 UI 网格字段中编写链接按钮的单击函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26418219/