ContextMenuItem - Add separator item type #1010

Open
opened 2026-01-29 17:47:44 +00:00 by claunia · 0 comments
Owner

Originally created by @RemiCELLARD on GitHub (Oct 18, 2023).

Is your feature request related to a problem? Please describe.
I'm always frustrated when you have to use RenderFragment instead of ContextMenuItem class to create a separator in ContextMenu (example : for DataGrid Cell)

Describe the solution you'd like

  • Add in class ContextMenuItem a new getter/setter (boolean) IsSeparator
  • When you render this, add separator <hr/> in your ContextMenu.

Describe alternatives you've considered
You can use RenderFragment (see https://blazor.radzen.com/docs/api/Radzen.ContextMenuOptions.html#Radzen_ContextMenuOptions_ChildContent ) but for my case, it's better to use object.

Additional context
No more element

Originally created by @RemiCELLARD on GitHub (Oct 18, 2023). **Is your feature request related to a problem? Please describe.** I'm always frustrated when you have to use RenderFragment instead of `ContextMenuItem` class to create a separator in ContextMenu (example : for DataGrid Cell) **Describe the solution you'd like** - Add in class `ContextMenuItem` a new getter/setter (boolean) `IsSeparator` - When you render this, add separator `<hr/>` in your ContextMenu. **Describe alternatives you've considered** You can use RenderFragment (see https://blazor.radzen.com/docs/api/Radzen.ContextMenuOptions.html#Radzen_ContextMenuOptions_ChildContent ) but for my case, it's better to use object. **Additional context** No more element
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1010