In addition to using batch editing, you can try to set the template for each column and bind input elements to data elements using MVVM.
$("#grid").kendoGrid({ dataSource: { schema: { model: { id: "id", fields: { id: { editable: false } } } } data: [ { id:1, age: 30, name: "John Doe" } ] }, columns: [ { field: "id", width: 50 }, { field: "age", template: "<input data-bind='value: age' data-role='numerictextbox'>" }, { field: "name", template:"<input data-bind='value: name' >" } ], dataBound: function() { var rows = this.tbody.children(); var dataItems = this.dataSource.view(); for (var i = 0; i < dataItems.length; i++) { kendo.bind(rows[i], dataItems[i]); } } });
Here is a live demo: http://jsbin.com/ApoFobA/2/edit
Atanas korchev
source share