Edit this page

Subscribe to the Edit Event of a Spreadsheet Cell

Environment

Product Version 2018.1.117
Product Spreadsheet for ProgressĀ® Kendo UIĀ®

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>

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy