In kendo grid, I want to create button in field column. And I came out with this example. But currently it only display for the first row (Any idea how to solve this?).
p/s : I know another option is to use command but I already used that for edit and delete button and I wanted to make separate column for Remark field.
<script>
$("#grid").kendoGrid({
dataBound:function(e){
var gridRows = this.tbody.find("tr");
gridRows.each(function (e) {
$("#remarkButton").kendoButton({icon: "paste-plain-text" });
});
},
columns: [
{ field: "remark", tite: 'Remark',
template: "<a class='k-button' id='remarkButton' ></a>" },
{ command: ["edit", "destroy"], title: " ", width: "250px" }
],
dataSource: [ { remark: "Jane Doe" }, { remark: "John Doe" } ]
});
</script>
<div id="grid"></div>