Hi support team.
how to get the row data? the following is currently not working..
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "id" },
{ field: "name" },
{ command: [
{
// for click to work when there is template, add class "k-grid-[command.name]" to some element, otherwise the click handler will not be triggered
name: "settings",
template: "#= data.id # text in the command column <a class='k-button k-grid-settings'><span class='k-icon k-i-settings'></span>Settings</a>",
click(e){
kendo.alert("how to")
}
}
]
}
],
dataSource: [{ id: 1, name: "Jane Doe", bib: 1 }, { id: 2, name: "Jane Doe 2", bib: 1 }]
});
</script>
</body>
</html>