Class ClearingEventArgs
Provides information about the OnClear event callback.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class ClearingEventArgs : Object
Remarks
This event is triggered before the file list is cleared when the user clicks the "clear" button. It provides an opportunity to cancel the clear operation or perform custom actions before the files are removed from the upload queue.
Constructors
ClearingEventArgs()
Declaration
public ClearingEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the file list clear action has been canceled.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Setting this property to true
will prevent the file list clear operation from proceeding.
This allows for conditional clearing based on custom logic, user confirmation, or validation requirements.
FilesData
Gets or sets the list of file details that will be cleared from the file list.
Declaration
public List<FileInfo> FilesData { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<FileInfo> | A System.Collections.Generic.List<> containing the details of all files that will be removed from the file list, or |
Remarks
This property contains information about all files that are scheduled for removal from the upload queue. The file details include names, sizes, types, and current status information, which can be used for logging, user confirmation, or implementing custom clear logic.