annotation using Free text. Annotation right click don't want context panel

Hi,

I am using Pdfviewer with custom toolbar. ASP.NET MVC. Pdfviewer version  19.2.0.57

Annotation using Free text, On that Annotation right click i don't want context panel.

How to remove that?


Thanks!


1 Reply

DM Dhivyabharathi Mohan Syncfusion Team September 28, 2021 11:53 AM UTC

Hi Nihar, 
 
 
Thank you for contacting Syncfusion support. 
 
 
You can disable the context menu items in the right-click action using the contextmenuAction property in the contextMenuSettings property. We have shared the sample, code snippet and API refence link below. 
 
 
 
 
Code snippet: 
 
window.onload = function () { 
        var pdfviewer = document.getElementById('pdfviewer').ej2_instances[0]; 
        pdfviewer.contextMenuSettings = { 
            contextMenuAction: 'None' 
        }; 
    } 
 
 
 
 
 
Kindly try this and revert us, if you have any concerns. 
 
 
Regards, 
Dhivya. 
 


Loader.
Up arrow icon