New to Telerik UI for BlazorStart a free 30-day trial

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:

C#
public class FileSelectEventArgs : ICancellableEventArgs

Inheritance: objectFileSelectEventArgs

Implements: ICancellableEventArgs

Constructors

C#
public FileSelectEventArgs()

Properties

Files

List<FileSelectFileInfo>

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.

C#
public List<FileSelectFileInfo> Files { get; set; }

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.

C#
public bool IsCancelled { get; set; }

Implements: ICancellableEventArgs.IsCancelled