menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectEventArgs<T> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectEventArgs<T>

    Event argument for the Select event, fired when a user actively picks an item in a Syncfusion dropdown, ComboBox, or ListBox.

    Inheritance
    System.Object
    SelectEventArgs<T>
    ComboBoxSelectEventArgs
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SelectEventArgs<T> : Object
    Type Parameters
    Name Description
    T

    Type of the selected business object/item in the control.

    Remarks

    SelectEventArgs provides all context: whether the event was user-triggered, selected data, and cancellation option.

    Examples
    void OnSelect(SelectEventArgs<MyModel> args)
    {
        if (!args.IsInteracted) return;
        LogSelected(args.ItemData);
    }

    Constructors

    SelectEventArgs()

    Declaration
    public SelectEventArgs()

    Properties

    Cancel

    Set to true to abort/cancel the select action for this selectable item.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    true cancels the select; false allows selection.

    E

    [Obsolete] Holds the raw browser event for legacy context.

    Declaration
    public object E { get; }
    Property Value
    Type
    System.Object

    IsInteracted

    Gets whether the event was triggered by the end user.

    Declaration
    public bool IsInteracted { get; }
    Property Value
    Type Description
    System.Boolean

    true if user click/tap/keyboard; false for programmatic select.

    Item

    [Obsolete] The DOM list item element; retained for backward compatibility.

    Declaration
    public DOM Item { get; }
    Property Value
    Type
    DOM

    ItemData

    Gets or sets the data object associated with the selected item.

    Declaration
    public T ItemData { get; }
    Property Value
    Type Description
    T

    The selected item's data of type T.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved