Class
PdfViewerDownloadEventArgs

Provides data for the PDF Viewer download event, including filename customization and cancellation capability. Use this to modify download behavior, customize file names, or implement download restrictions.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class PdfViewerDownloadEventArgs : ICancellableEventArgs

Inheritance: objectPdfViewerDownloadEventArgs

Implements: ICancellableEventArgs

Constructors

PdfViewerDownloadEventArgs()

Declaration

cs-api-definition
public PdfViewerDownloadEventArgs()

Properties

FileName

Gets or sets the filename used when downloading the PDF document. Customize this to provide meaningful file names based on document content, user context, or timestamp. Should include the .pdf extension for proper file type recognition. Default is "Document" which will result in "Document.pdf" when downloaded.

Declaration

cs-api-definition
public string FileName { get; set; }

Property Value

string

IsCancelled

Gets or sets whether the download operation should be cancelled. Set to true to prevent the file download, useful for implementing download restrictions, user permissions, or custom download workflows. When cancelled, the browser will not initiate the download process.

Declaration

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

Property Value

bool

Implements ICancellableEventArgs.IsCancelled