cellContextMenu

Gets the contextMenu instance of the cell.

Returns

kendo.ui.ContextMenu - The menu instance.

Dynamically adding a context menu item and associating a selection command

pseudo
    <div id="spreadsheet"></div>

    <script>
        $(function() {
            var spreadsheet = $("#spreadsheet").kendoSpreadsheet().data("kendoSpreadsheet"),
                cellContextMenu = spreadsheet.cellContextMenu();

          	cellContextMenu.append([{ text: "Highlight", cssClass: "highlight" }]);

            cellContextMenu.bind("select", function(e) {
               var command = $(e.item).text();

              if(command == "Highlight") {
              	var sheet = spreadsheet.activeSheet(),
                    selection = sheet.selection();

                selection.background("green");
              }
           });
        });
    </script>
In this article
cellContextMenu
Not finding the help you need?
Contact Support