ClassFileSelectEventArgs
Event arguments for FileSelect component events, providing access to affected files and event cancellation control. Contains information about files being selected or removed, enabling validation, processing, and event flow control. Use to implement custom validation logic, file processing workflows, or conditional event handling based on file properties.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class FileSelectEventArgs : ICancellableEventArgs
Inheritance: objectFileSelectEventArgs
Implements:
Constructors
FileSelectEventArgs()
Declaration
public FileSelectEventArgs()
Properties
Files
Gets or sets the collection of files involved in the current event operation. Contains complete file information including metadata, validation status, and content streams for processing. For selection events, includes newly chosen files; for removal events, contains files being removed. ACCESS: Each file provides name, size, extension, validation state, and readable stream for content processing.
Declaration
public List<FileSelectFileInfo> Files { get; set; }
Property Value
IsCancelled
Gets or sets whether the current event operation should be cancelled. Set to true to prevent file selection from completing or file removal from proceeding. When cancelled, files are not added to or removed from the component's file collection. USE CASES: Cancel based on validation failures, size limits, security checks, or user permissions.