• 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 Template in ASP.NET Core ContextMenu Control

This sample demonstrates the template functionality of the ContextMenu. Right-click or touch and hold the designated rectangular area to open the ContextMenu, which displays customized items using a template.

DEMO
SOURCE

    ContextMenu is a graphical user interface that appears on a right-click or touch-and-hold action. It supports displaying single-level or multi-level menus and allows for customizing the menu items through templates.

    In this demo, itemTemplate property is used to enable template support for customizing ContextMenu items. Each menu item is customized using a template to include icons, descriptive text, and additional content, offering a flexible and user-friendly interface.

    In mobile, the sub menu opens in a single layer with option for switching back to parent menu.

    More information about ContextMenu 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