Class
PdfViewerOpenEventArgs

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:

cs-api-definition
public class PdfViewerOpenEventArgs : ICancellableEventArgs

Inheritance: objectPdfViewerOpenEventArgs

Implements: ICancellableEventArgs

Constructors

PdfViewerOpenEventArgs()

Declaration

cs-api-definition
public PdfViewerOpenEventArgs()

Properties

Files

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.

Declaration

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

Property Value

List<FileSelectFileInfo>

IsCancelled

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.

Declaration

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

Property Value

bool

Implements ICancellableEventArgs.IsCancelled