To disable the right-click context menu in RadPdfViewer, you can set the RadContextMenu property to null. This will completely remove the context menu and prevent it from appearing when the user right-clicks inside the RadPdfViewer. Here is how you can do this:
this.radPdfViewer1.RadContextMenu = null;
Regards,
Dinko | Tech Support Engineer
Progress Telerik
answered on 05 Aug 2025, 12:07 AM
| edited on 05 Aug 2025, 12:11 AM
Share other features分享其他功能
隱藏radPdfViewer1滑鼠右鍵列印專案 foreach (RadItem item in this.radPdfViewer1.PdfViewerElement.ContextMenu.Items) { if (item.Text.Contains(“P&rint”)) { 專案。可見性 = ElementVisibility.Collapsed; Debug.WriteLine(“右鍵選單內容: ” + item.文本); }
}
Dinko | Tech Support Engineer
Telerik team
commented on 05 Aug 2025, 08:34 AM
I have correctly translated your post, you are sharing a way to hide a specific item. Thank you for sharing it with the community. For more information on how to add a new item, for example, please check the RadPdfViewer - Context Menu help article.