alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    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
    object
    SelectEventArgs<T>
    ComboBoxSelectEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SelectEventArgs<T>
    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
    [JsonPropertyName("cancel")]
    public bool Cancel { get; set; }
    Property Value
    Type Description
    bool

    true cancels the select; false allows selection.

    E

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

    Declaration
    [Obsolete("This property is obsolete and no longer supported.", false)]
    [JsonPropertyName("e")]
    public object E { get; }
    Property Value
    Type
    object

    IsInteracted

    Gets whether the event was triggered by the end user.

    Declaration
    [JsonPropertyName("isInteracted")]
    public bool IsInteracted { get; }
    Property Value
    Type Description
    bool

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

    Item

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

    Declaration
    [Obsolete("This property is obsolete and no longer supported.", false)]
    [JsonPropertyName("item")]
    public DOM Item { get; }
    Property Value
    Type
    DOM

    ItemData

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

    Declaration
    [JsonPropertyName("itemData")]
    public T ItemData { get; }
    Property Value
    Type Description
    T

    The selected item's data of type T.

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