menu

Blazor

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

    Show / Hide Table of Contents

    Class RemoveEventArgs<T>

    Event data class for item removal scenarios—typically triggered when a user or programmatic call removes a selection from a Syncfusion MultiSelect or Chip control.

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

    The data type of the item removed (e.g., string, custom model).

    Remarks

    RemoveEventArgs provides full context about the removal action, who triggered it, and the item removed for analytics, UI-state management, or returning a removed value.

    Examples
    void OnRemove(RemoveEventArgs<MyType> args) {
        if (args.IsInteracted) {
            Console.WriteLine($"Removed: {args.ItemData}");
        }
    }

    Constructors

    RemoveEventArgs()

    Declaration
    public RemoveEventArgs()

    Properties

    Cancel

    Gets or sets a flag to cancel the removal action for the selected item.

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

    true to cancel removal; false to allow it (default: false).

    E

    (Obsolete) Browser event for legacy compatibility.

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

    IsInteracted

    Gets a value indicating whether the item was removed by user action (false: programmatic).

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

    true if user interaction; false otherwise.

    Item

    (Obsolete) DOM element of the removed item; for backward compatibility.

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

    ItemData

    Data object for the item that was removed.

    Declaration
    public T ItemData { get; }
    Property Value
    Type
    T
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved