I was able to get inline editing working with an update button like so:
one of my columns: { command: ["edit", "delete"], title: " ", width: "200px" }
{
editable: {
mode: "inline"
},
columns: setColumnsForTab(tabName, paymentClicked),
dataSource: new kendo.data.DataSource({
pageSize: 15,
data: $ctrl[tabName + 'GridData'],
transport: {
read: (options) => {
options.success($ctrl[tabName + 'GridData']);
},
update: function(e) {
console.log("update is called: ", e);
var updateItem = e.data;
console.log("updated object : ", updateItem);
e.success();
},
destroy: function(e) {
console.log("destroy");
e.success();
},
save: function(e) { console.log(e) },
create: function(e) {
console.log("create is called:", e);
console.log("create data is:", e.data);
e.success(e.data);
}
},
schema: {
data: function(response) {
console.log("results", response);
return response;
},
model: {
id: 'id',
fields: {
amountApplied: {
editable: true
},
}
}
}
})
}
How can I configure the options so that changes to the gridData are saved while the user is typing in the editable "amountApplied" field, rather than making the user click edit, and then type, and then click update, for it be saved to the gridData?