SfRichTextBoxAdv Contextmenu customizable?

Is the contextmenu in the SfRichTextBoxAdv customizable? I don't need the menu item comments and don't want this menu item to be visible.

Thanks!


3 Replies 1 reply marked as answer

KG Kalaivannan Ganesan Syncfusion Team September 7, 2023 07:43 AM UTC

Elke, we can remove a menu item from the context menu of SfRichTextBoxAdv by using the respective menu item's header name. For example,

If you want to remove the 'New Comment' menu item, which is highlighted below, from the context menu, iterate through the context menu items. Check each item's header name for a match with 'New Comment'. If a match is found, remove the menu item from the context menu.


We have created a sample application to demonstrate the same as mentioned above. Additionally, we have included the code to add new menu items to the context menu of SfRichTextBoxAdv, which is provided below.


Attachment: SfRichTextBoxAdv_ContextMenu_88f4e003.zip

Marked as answer

EG Elke Goellinger September 8, 2023 02:57 PM UTC

Thanks a lot, it works!



KG Kalaivannan Ganesan Syncfusion Team September 11, 2023 04:33 AM UTC

Most welcome.


Loader.
Up arrow icon