RadzenProfileMenuItem Class

A menu item component used within RadzenProfileMenu to define individual navigation or action items. RadzenProfileMenuItem represents one clickable item in a profile menu dropdown with support for icons, navigation, and custom content. Used inside RadzenProfileMenu to create user profile dropdown menus. Each item can navigate to a page (via Path), trigger an action (via click event), or display custom content (via Template). Common uses in profile menus include account settings, user profile page, logout/sign out, preferences, and help/documentation. Items support icons, images, text, and custom templates for flexible rendering.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenProfileMenuItem

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenProfileMenuItem : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Examples

Profile menu items in a profile menu:

<RadzenProfileMenu>
    <Template>
        <RadzenIcon Icon="account_circle" /> John Doe
    </Template>
    <ChildContent>
        <RadzenProfileMenuItem Text="Profile" Icon="person" Path="/profile" />
        <RadzenProfileMenuItem Text="Settings" Icon="settings" Path="/settings" />
        <RadzenProfileMenuItem Text="Logout" Icon="logout" Value="logout" />
    </ChildContent>
</RadzenProfileMenu>

Constructors

RadzenProfileMenuItemLink to this section

A menu item component used within RadzenProfileMenu to define individual navigation or action items. RadzenProfileMenuItem represents one clickable item in a profile menu dropdown with support for icons, navigation, and custom content. Used inside RadzenProfileMenu to create user profile dropdown menus. Each item can navigate to a page (via Path), trigger an action (via click event), or display custom content (via Template). Common uses in profile menus include account settings, user profile page, logout/sign out, preferences, and help/documentation. Items support icons, images, text, and custom templates for flexible rendering.

Declaration
public RadzenProfileMenuItem()

Properties

IconLink to this section

Gets or sets the icon.

Declaration
public string Icon { get; set; }
Property Value
Type Description
stringGets or sets the icon.

IconColorLink to this section

Gets or sets the icon color.

Declaration
public string IconColor { get; set; }
Property Value
Type Description
stringGets or sets the icon color.

ImageLink to this section

Gets or sets the image.

Declaration
public string Image { get; set; }
Property Value
Type Description
stringGets or sets the image.

ImageAlternateTextLink to this section

Gets or sets the text.

Declaration
public string ImageAlternateText { get; set; }
Property Value
Type Description
stringGets or sets the text.

MatchLink to this section

Gets or sets the navigation link match.

Declaration
public Routing.NavLinkMatch Match { get; set; }
Property Value
Type Description
Routing.NavLinkMatchGets or sets the navigation link match.

MenuLink to this section

Gets or sets the menu.

Declaration
public RadzenProfileMenu Menu { get; set; }
Property Value
Type Description
RadzenProfileMenuGets or sets the menu.

ParentLink to this section

Gets or sets the parent.

Declaration
public RadzenProfileMenu Parent { get; set; }
Property Value
Type Description
RadzenProfileMenuGets or sets the parent.

PathLink to this section

Gets or sets the path.

Declaration
public string Path { get; set; }
Property Value
Type Description
stringGets or sets the path.

TargetLink to this section

Gets or sets the target.

Declaration
public string Target { get; set; }
Property Value
Type Description
stringGets or sets the target.

TemplateLink to this section

Gets or sets the template.

Declaration
public RenderFragment Template { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the template.

TextLink to this section

Gets or sets the text.

Declaration
public string Text { get; set; }
Property Value
Type Description
stringGets or sets the text.

ValueLink to this section

Gets or sets the value.

Declaration
public string Value { get; set; }
Property Value
Type Description
stringGets or sets the value.

Methods

BuildRenderTreeLink to this section

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

GetComponentCssClassLink to this section

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnClickLink to this section

Handles the click event.

Declaration
public Task OnClick(MouseEventArgs args)
Parameters
Type Name Description
MouseEventArgs args The MouseEventArgs instance containing the event data.
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙