New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the PDFViewerMessagesErrorMessagesSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PDFViewerMessagesErrorMessagesSettingsBuilder

Inheritance: objectPDFViewerMessagesErrorMessagesSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public PDFViewerMessagesErrorMessagesSettingsBuilder(PDFViewerMessagesErrorMessagesSettings settings)
Parameters:settingsPDFViewerMessagesErrorMessagesSettings

The PDFViewerMessagesErrorMessagesSettings

Methods

Specifies the error message displayed when the specified PDF file URL returns a 404 error or the file cannot be located at the provided path.

C#
public PDFViewerMessagesErrorMessagesSettingsBuilder NotFound(string value)
Parameters:valuestring

The value that configures the notfound.

Returns:

PDFViewerMessagesErrorMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.ErrorMessages(errmsg => errmsg.NotFound("File is not found."))
)
)

Specifies the error message displayed when a user attempts to open a file that is not a PDF format. This validation occurs during file selection or upload.

C#
public PDFViewerMessagesErrorMessagesSettingsBuilder NotSupported(string value)
Parameters:valuestring

The value that configures the notsupported.

Returns:

PDFViewerMessagesErrorMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.ErrorMessages(errmsg => errmsg.NotSupported("Only pdf files allowed."))
)
)

Specifies the error message displayed when the PDF processing library fails to parse or render the PDF file due to corruption, unsupported features, or internal errors.

C#
public PDFViewerMessagesErrorMessagesSettingsBuilder ParseError(string value)
Parameters:valuestring

The value that configures the parseerror.

Returns:

PDFViewerMessagesErrorMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.ErrorMessages(errmsg => errmsg.ParseError("PDF file fails to process."))
)
)

Specifies the error message displayed when browser popup blockers prevent the PDF viewer from opening new windows for print or download operations.

C#
public PDFViewerMessagesErrorMessagesSettingsBuilder PopupBlocked(string value)
Parameters:valuestring

The value that configures the popupblocked.

Returns:

PDFViewerMessagesErrorMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.ErrorMessages(errmsg => errmsg.PopupBlocked("Popup is blocked."))
)
)