我想为 Kendo UI 网格模板按钮分配 ID(来自 dataSource),并想知道来自 cilcked_function() 的单击按钮 ID。任何人都可以帮助我做到这一点..
$("#grid").kendoGrid({
dataSource: App.TempHourlyTargetData,
columns: [
{ field: "field1", title: "Field 1", width: "25%" }, { field: "field2", title: "Field 2", width: "25%" },
{
template: "<a href='\\\#' onclick='click_function()' id = '" + id_from_datagrid + "' class='deleteBtn'></a>",
width: "25%"
}
],
height: 350,
change: onChange,
selectable: "multiple cell",//""multiple row"", ,
});