可以使用以下代码行在网格中添加列
$("#grid").kendoGrid({
dataSource: dataSource,
pageable: true,
height: 430,
toolbar: ["create", "save", "cancel"],
columns: [
{ template: "<input data-bind='value:ProductName' />", title: "Product Name", width: 110 },
{ template: "<input data-bind='value:UnitsInStock' />", title: "Units In Stock", width: 110 },
{ field: "Discontinued", width: 110 },
{ command: "destroy", title: " ", width: 90 }],
editable: true,
dataBound: onDataBound
});
更多详情:
We can refer the Kendo Document