Skip to main content

ContextMenuItemClickEventArgs.ItemInfo Property

Returns information about a clicked menu item.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public IContextMenuItemInfo ItemInfo { get; }

Property Value

Type Description

An object that implements the IContextMenuItemInfo interface and stores information about a clicked menu item.


Use the ItemInfo event argument to get information about a clicked item. For example, you can access the following item characteristics:

For a complete list of available information, refer to IContextMenuItemInfo members.

<div class="card-header">
    @if (ClickedItem != null) {
        <span>Clicked item: <b>@ClickedItem</b></span>
    else {
        <span>Clicked item: None</span>
<DxContextMenu ItemClick="@OnItemClick">
            <DxContextMenuItem Text="Sort By" IconUrl="images/Sort_by.svg">
                    <DxContextMenuItem Text="Name"></DxContextMenuItem>
                    <DxContextMenuItem Text="Size"></DxContextMenuItem>
                    <DxContextMenuItem Text="Type"></DxContextMenuItem>
            <DxContextMenuItem Text="Copy" IconUrl="images/Copy.svg" BeginGroup="true"></DxContextMenuItem>
            <DxContextMenuItem Text="Cut" IconUrl="images/Cut.svg"></DxContextMenuItem>
            <DxContextMenuItem Text="Remove" IconUrl="images/Clear.svg"></DxContextMenuItem>
            <DxContextMenuItem Text="Select All" BeginGroup="true"></DxContextMenuItem>

@code {
    string ClickedItem { get; set; }

    void OnItemClick(ContextMenuItemClickEventArgs args) {
        ClickedItem = args.ItemInfo.Text;

ContextMenu clicked item

Run Demo: Context Menu - Data Binding

See Also