New to Telerik UI for Blazor? Start a free 30-day trial

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:

C#
public class PdfViewerDownloadEventArgs : ICancellableEventArgs

Inheritance: objectPdfViewerDownloadEventArgs

Implements: ICancellableEventArgs

Constructors

C#
public PdfViewerDownloadEventArgs()

Properties

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.

C#
public string FileName { get; set; }

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.

C#
public bool IsCancelled { get; set; }

Implements: ICancellableEventArgs.IsCancelled