Class SelectEventArgs<T>
Event argument for the Select event, fired when a user actively picks an item in a Syncfusion dropdown, ComboBox, or ListBox.
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 |
|
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 |
|
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 |