Subscribe to the Edit Event of a Spreadsheet Cell
Environment
Product Version | 2018.1.117 |
Product | Progress® Kendo UI® Spreadsheet for jQuery |
Description
How can I get informed if an event is due for handling when the user starts editing a cell in the spreadsheet?
Solution
Utilize the select
event of the Spreadsheet to subscribe to the activate
event of the _view.editor
.
<div id="spreadsheet" style="width: 100%"></div>
<script>
function onSelect(arg) {
arg.sender._view.editor.one("activate", function() {
console.log("edit mode");
});
}
$(function () {
var sp = $("#spreadsheet").kendoSpreadsheet({
select: onSelect,
sheets: [{
name: "Invoices",
}]
}).getKendoSpreadsheet();
});
</script>