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
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., |
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 |
|
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 |
|
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 |