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

Provides data for the PDF Viewer file open event, including file information and cancellation capability. Use this to validate files before opening, implement custom file processing, or prevent unauthorized file access.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class PdfViewerOpenEventArgs : ICancellableEventArgs

Inheritance: objectPdfViewerOpenEventArgs

Implements: ICancellableEventArgs

Constructors

C#
public PdfViewerOpenEventArgs()

Properties

Files

List<FileSelectFileInfo>

Gets the collection of files selected for opening in the PDF Viewer. Contains file metadata including name, size, and type information for validation and processing. Typically contains a single PDF file, but the collection structure supports potential future enhancements.

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

Gets or sets whether the file opening operation should be cancelled. Set to true to prevent the file from loading, useful for file validation, security checks, or user confirmation scenarios. When cancelled, the PDF Viewer will not process or display the selected file.

C#
public bool IsCancelled { get; set; }

Implements: ICancellableEventArgs.IsCancelled