Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IDropDownButtonItemInfo Interface

Contains information about a DxDropDownButtonItem

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public interface IDropDownButtonItemInfo

The following members return IDropDownButtonItemInfo objects:

#Remarks

When a user clicks a drop-down button item, the DxDropDownButton.ItemClick event fires. The event argument’s ItemInfo property implements the IDropDownButtonItemInfo interface. Use interface properties to obtain information about the processed item.

DxDropDownButton - Obtain Item Info

<div style="padding-bottom:20px;">
    @if (ClickedItem != null) {
        <span>Clicked item: <b>@ClickedItem</b></span>
    } else {
        <span>Clicked item: None</span>
    }
</div>

<div style="width:300px; height:150px;">
    <DxDropDownButton RenderStyle="ButtonRenderStyle.Secondary"
                      Text="Clipboard"
                      IconCssClass="tb-icon tb-icon-paste"
                      ItemClick=@OnClick
                      CssClass="me-1">
        <Items>
            <DxDropDownButtonItem Text="Cut" IconCssClass="menu-icon-cut menu-icon"/>
            <DxDropDownButtonItem Text="Copy" IconCssClass="menu-icon-copy menu-icon" />
            <DxDropDownButtonItem Text="Paste" IconCssClass="tb-icon tb-icon-paste" />
            <DxDropDownButtonItem Text="Paste Special" BeginGroup="true">
                <Items>
                    <DxDropDownButtonItem Text="Paste Text Only" />
                    <DxDropDownButtonItem Text="Paste Picture" Enabled="false" />
                    <DxDropDownButtonItem Text="Paste as Hyperlink" />
                </Items>
            </DxDropDownButtonItem>
        </Items>
    </DxDropDownButton>

</div>

@code {
    string ClickedItem { get; set; } = "";
    void OnClick(DropDownButtonItemClickEventArgs args) {
        ClickedItem = args.ItemInfo.Text;
    }
}
See Also