Hi,
I'm trying to use the cancel event in a grid, but the event is never fired.
Code:
$("#grid").kendoGrid({
editable: true,
toolbar: ["create", "save", "cancel"],
dataSource: _dataSource,
columns: [{
title: "Description",
field: "description"
}, {
title: "Active",
field: "active"
}],
edit: function (e) {
console.log("add row");
},
cancel: function (e) {
console.log("cancel row");
}
});
When I click on "Add new record", the console shows "add row", but when I click on "Cancel changes" nothing shows up in the console.
It is a pretty simple code and it is following the documentation, but am I missing something?
Version: Kendo UI v2016.1.112
Thanks!