• Material 3
  • Fluent
  • Fluent 2
  • Bootstrap 5
  • Tailwind CSS
  • High Contrast
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Custom Context Menu in ASP.NET Core Word Processor Control

This example demonstrates how to add custom option in context menu and some customization for context menu.

DEMO
SOURCE

In this example, custom options added to search the selected text in google. The custom options will be visible after selecting the text.

Context Menu Customization Features

  • Hide existing menu item and show custom menu item alone. It will be achieved by passing boolean value in second parameter of addCustomMenu() method
  • Show the custom menu item in bottom of the exisiting item. It will be achieved by passing boolean value in third parameter of addCustomMenu() method
  • Customize visibility of the added custom menu item. It will be achieved using the customContextMenuBeforeOpen Event
  • Custom Option Functionality achieved by using the customContextMenuSelect Event

More information about the document editor features can be found in this documentation section.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab