Hello Eduardo,
Yes you could equally remove a default item from the context menu or the newly added custom item. In order to do that, you could handle the open event of the ConextMenu and use its remove() method:
cellContextMenu.bind("open", function(e) {
var menu = e.sender;
menu.remove('[data-action="cut"]');
menu.remove('.custom-item');
})
Where you have assigned a custom class to the custom Menu item:
var cellContextMenu = spreadsheet._controller.cellContextMenu;
cellContextMenu.append([
{ cssClass: "k-separator" },
{ text: "Create Named Range", cssClass: "custom-item" }
]);
Here is a Dojo sample demonstrating the above:
http://dojo.telerik.com/oGIdiJOD/2
Regards,
Veselin Tsvetanov
Progress Telerik
Progress is here for your business, like always.
Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.