New to Telerik UI for Blazor? Start a free 30-day trial

Context Menu Content Template

Updated on Aug 31, 2026

The Context Menu component allows you to define a custom template for its entire content so you can render what you want in it

To override the context menu rendering, use the <Template> tag, and define your desired components and layout there.

The template receives the data source to which the context menu is bound as its context.

You can use the template to render arbitrary content according to your application's data and logic. You can use components in it and thus provide rich content instead of plain text. You can also use it to add DOM event handlers like click, doubleclick, mouseover if you need to respond to them.

Use the content template to implement a custom layout that can also use the current target to alter itself

Example
View Source
Loading ...

The result from the snippet above

Context Menu Conditional Content Template with custom layout

See Also

In this article
See Also
Not finding the help you need?
Contact Support