Disabling ContextMenu in RadPdfViewer for UI for WinForms
Environment
Product Version | Product | Author |
---|---|---|
2025.2.520 | RadPdfViewer for WinForms | Dinko Krastev |
Description
There could be a requirement to disable the default ContextMenu in the RadPdfViewer control.
Solution
To disable the right-click context menu in PdfViewer for UI for WinForms, set the RadContextMenu
property to null
. This removes the context menu entirely, preventing it from appearing when the user right-clicks inside the RadPdfViewer.
Example Code
this.radPdfViewer1.RadContextMenu = null;
In some cases, the default menu items need to be modified, and the RadPdfViewer Context Menu article demonstrates how to do that.