我有一个kendo网格与编辑按钮里面,我不知道我怎么能得到它的id,因为我需要val,在下面的代码中我已经写了代码编辑如何添加更多功能来编辑?我怎样才能得到Kendo编辑按钮瓦尔
$("#turbingrid").kendoGrid({
// debugger;
dataSource: dataSource,
scrollable: false,
toolbar: ["create"],
columns: [
{ field: 'DeviceIP', title: 'DeviceIP', width: '100px', id: 'DeviceIP' },
{ field: 'Producer', title: 'Producer', width: '80px', },//editor: ProductNameDropDownEditor,
{ field: 'Model', title: 'Model', width: '220px' },
{ field: 'DeviceType', title: 'DeviceType', width: '100px', editor: deviceTypesList },
{ field: 'Description', title: 'Description', width: '220px' },
{ field: 'Username', title: 'Username', width: '120px' },
{ field: 'Password', title: 'Password', width: '100px' },
{ field: 'PublicIP', title: 'PublicIP', width: '120px' },
{ field: 'TurbineId', title: 'TurbineId', width: '120px', hidden: true },
{ field: 'device_id', title: 'device_id', width: '120px', hidden: true },
{ field: 'ModelProducer', title: 'Producer/Model', hidden: true, editor: modelProducer },
{ command: ["edit"], title: " " }
],
// {
// command: [
//{
// name: "Edit",
// click: function (e) {
// temp = $(e.target).closest("tr"); //get the row
// }
//}
// ]
// }
editable: "popup",
edit:
function (e) {
e.container.find("label[for='device_id']").parent().hide();
e.container.find("div[data-container-for='device_id']").hide();
}
});
什么意思是“如何添加更多的功能来编辑”,你是指更多的功能,当按钮被点击或? – Adriani6
@ Adriani6 yeas我想尽快点击编辑按钮{do .....} – mrslt