rowHeaderContextMenu
Gets the contextMenu
instance of the row header.
Returns
kendo.ui.ContextMenu
- The menu instance.
Example - removing the hide command for the first row in the rowHeaderContextMenu
<div id="spreadsheet"></div>
<script>
$(function() {
var spreadsheet = $("#spreadsheet").kendoSpreadsheet().data("kendoSpreadsheet"),
rowContextMenu = spreadsheet.rowHeaderContextMenu();
rowContextMenu.bind("open", function(e) {
var menu = e.sender;
var spread = $(e.target).getKendoSpreadsheet();
var sheet = $(e.target).getKendoSpreadsheet().activeSheet();
var selected = sheet.select();
var rowNumber = selected.topLeft.row;
if (rowNumber === 0) {
$('li[data-action="hide-row"]').hide();
} else {
$('li[data-action="hide-row"]').show();
}
});
});
</script>