Hi Austin,
Thanks for contacting Syncfusion Support.
We have checked your reported requirement, and we can add new context menu item by calling addContextMenuItems method in contextMenuBeforeOpen event handler as like in the below code snippet.
|
<ejs-spreadsheet id="spreadsheet" created="createdHandler" contextMenuBeforeOpen="beforeOpenHandler" height="750">
</ejs-spreadsheet>
…
function beforeOpenHandler(args) {
this.addContextMenuItems(
[{ text: "Custom Item" }],
"Paste",
false
);
}
|
For your reference we have created sample here.
Could you please check the above details, and get back to us, if you need assistance on this.
Regards,
Aravinthan S