Feature Request: Allow Child Content in RadzenProfileMenuItem Component #1444

Closed
opened 2026-01-29 17:53:43 +00:00 by claunia · 2 comments
Owner

Originally created by @mikemassa84 on GitHub (Oct 25, 2024).

Is your feature request related to a problem? Please describe.
RadzenProfileMenuItem does not allow embedding components.

Describe the solution you'd like
It would be useful to allow RadzenProfileMenuItem to accept child content similar to the RadzenPanelMenuItem. This would allow us to add switches and other components to the profile menu. One example use case of this could be including a RadzenSwitch or the RadzenAppearanceToggle to allow theme switching directly from a profile menu option.

Describe alternatives you've considered
I've gotten around this by adding the Click listener to the RadzenProfileMenu and executing a theme switch (toggle between light/dark) in the click handler method. This works but the profile menu item is displayed as Text and Icon only and it might be a nicer look to have one of the more complex components available in place of the text.

Additional context
I would like to do something like this:

<RadzenProfileMenu>
    <Template>
        <RadzenGravatar Email="user@example.com">
         </RadzenGravatar>
    </Template>
    <ChildContent>
        <RadzenProfileMenuItem>
            <RadzenSwitch Change=@(args => OnChange(args, "Switch")) />
        </RadzenProfileMenuItem>
        <RadzenProfileMenuItem Text="Buttons" Path="buttons" Icon="account_circle"></RadzenProfileMenuItem>
    </ChildContent>
</RadzenProfileMenu>
Originally created by @mikemassa84 on GitHub (Oct 25, 2024). **Is your feature request related to a problem? Please describe.** RadzenProfileMenuItem does not allow embedding components. **Describe the solution you'd like** It would be useful to allow RadzenProfileMenuItem to accept child content similar to the RadzenPanelMenuItem. This would allow us to add switches and other components to the profile menu. One example use case of this could be including a RadzenSwitch or the RadzenAppearanceToggle to allow theme switching directly from a profile menu option. **Describe alternatives you've considered** I've gotten around this by adding the Click listener to the RadzenProfileMenu and executing a theme switch (toggle between light/dark) in the click handler method. This works but the profile menu item is displayed as Text and Icon only and it might be a nicer look to have one of the more complex components available in place of the text. **Additional context** I would like to do something like this: ``` <RadzenProfileMenu> <Template> <RadzenGravatar Email="user@example.com"> </RadzenGravatar> </Template> <ChildContent> <RadzenProfileMenuItem> <RadzenSwitch Change=@(args => OnChange(args, "Switch")) /> </RadzenProfileMenuItem> <RadzenProfileMenuItem Text="Buttons" Path="buttons" Icon="account_circle"></RadzenProfileMenuItem> </ChildContent> </RadzenProfileMenu> ```
Author
Owner

@retslig commented on GitHub (Nov 22, 2024):

Yes I need this as well!

@retslig commented on GitHub (Nov 22, 2024): Yes I need this as well!
Author
Owner

@bdovaz commented on GitHub (Jan 24, 2025):

Same problem here

@bdovaz commented on GitHub (Jan 24, 2025): Same problem here
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1444