Class
FileSelectEventArgs

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:

cs-api-definition
public class FileSelectEventArgs : ICancellableEventArgs

Inheritance: objectFileSelectEventArgs

Implements: ICancellableEventArgs

Constructors

FileSelectEventArgs()

Declaration

cs-api-definition
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

cs-api-definition
public List<FileSelectFileInfo> Files { get; set; }

Property Value

List<FileSelectFileInfo>

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.

Declaration

cs-api-definition
public bool IsCancelled { get; set; }

Property Value

bool

Implements ICancellableEventArgs.IsCancelled