Class SelectAllEventArgs<T>
Event data for select-all and deselect-all actions in ListBox and MultiSelect, tracking state, triggering context, and user interaction.
Namespace: Syncfusion.Blazor.DropDowns
Assembly: Syncfusion.Blazor.dll
Syntax
public class SelectAllEventArgs<T> : Object
Type Parameters
Name | Description |
---|---|
T | Type of the items being selected/deselected (e.g., |
Remarks
SelectAllEventArgs records whether select-all was user-driven, the affected values, and the full selection state. Use it to audit or block select-all flows.
Examples
void OnSelectAll(SelectAllEventArgs<MyType> args) {
if (args.IsChecked) {
Console.WriteLine($"All values selected: {string.Join(",", args.ItemData ?? new List<MyType>())}");
}
}
Constructors
SelectAllEventArgs()
Declaration
public SelectAllEventArgs()
Properties
Event
[Obsolete] Browser event for old select-all API; not supported now.
Declaration
public object Event { get; set; }
Property Value
Type |
---|
System.Object |
IsChecked
Gets whether select-all has checked or unchecked items.
Declaration
public bool IsChecked { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsInteracted
Gets a value indicating whether select-all was triggered by direct user interaction.
Declaration
public bool IsInteracted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ItemData
Enumerable of the selected item data objects after the select-all action is performed.
Declaration
public IEnumerable<T> ItemData { get; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<T> |
Items
(Obsolete) Old-style selected element list for compatibility only.
Declaration
public List<DOM> Items { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<DOM> |