menu

Blazor

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

    Show / Hide Table of Contents

    Class SelectAllEventArgs<T>

    Event data for select-all and deselect-all actions in ListBox and MultiSelect, tracking state, triggering context, and user interaction.

    Inheritance
    System.Object
    SelectAllEventArgs<T>
    SelectingAllEventArgs<T>
    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., string).

    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

    true for select-all activation; false for deselect-all.

    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

    true if changed by the user; false if programmatic.

    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>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved