Context menu Items

Hello,

Is there a way to add items to the Context menu for the spreadsheet in ASP .NET Core?



Thanks

1 Reply 1 reply marked as answer

AS Aravinthan Seetharaman Syncfusion Team February 9, 2021 10:42 AM UTC

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 


Marked as answer
Loader.
Up arrow icon