在劍道網格中,我想在字段列中創建按鈕。我提出了這個例子。但目前它只顯示第一行(知道如何解決這個問題嗎?)。p/s :我知道另一個選項是使用command,但我已經將它用于編輯和刪除按鈕,我想為Remark字段創建單獨的列。<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>
Kendo Grid 在每行上創建一個圖標按鈕
慕神8447489
2023-04-20 17:03:36