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

Defines the fluent API for configuring the PDFViewerMessagesDialogsSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PDFViewerMessagesDialogsSettingsBuilder

Inheritance: objectPDFViewerMessagesDialogsSettingsBuilder

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

Constructors

C#
public PDFViewerMessagesDialogsSettingsBuilder(PDFViewerMessagesDialogsSettings settings)
Parameters:settingsPDFViewerMessagesDialogsSettings

The PDFViewerMessagesDialogsSettings

Methods

Specifies the text for the cancel button in dialog windows. This button closes dialogs without performing any action or saving changes.

C#
public PDFViewerMessagesDialogsSettingsBuilder Cancel(string value)
Parameters:valuestring

The value that configures the cancel.

Returns:

PDFViewerMessagesDialogsSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.Dialogs(dialogs => dialogs.Cancel("Cancel"))
)
)

Specifies the localization messages for the export dialog that appears when using DPL processing. Contains text for dialog elements including title, file format options, and form labels.

C#
public PDFViewerMessagesDialogsSettingsBuilder ExportAsDialog(Action<PDFViewerMessagesDialogsExportAsDialogSettingsBuilder> configurator)
Parameters:configuratorAction<PDFViewerMessagesDialogsExportAsDialogSettingsBuilder>

The action that configures the exportasdialog.

Returns:

PDFViewerMessagesDialogsSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs
.ExportAsDialog(expDialog =&gt; expDialog.Title("Export..."))
)
)
)

Specifies the text for the confirmation button in dialog windows. This button is used to confirm actions and close dialogs with positive results.

C#
public PDFViewerMessagesDialogsSettingsBuilder OkText(string value)
Parameters:valuestring

The value that configures the oktext.

Returns:

PDFViewerMessagesDialogsSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs.OkText("OK"))
)
)

Specifies the text for the save/download button in export and file dialogs. This button initiates the file save or download operation.

C#
public PDFViewerMessagesDialogsSettingsBuilder Save(string value)
Parameters:valuestring

The value that configures the save.

Returns:

PDFViewerMessagesDialogsSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs.Save("Save"))
)
)

Specifies the localization messages for the search dialog that appears when users perform text searches within PDF documents. Contains text for search controls and navigation buttons.

C#
public PDFViewerMessagesDialogsSettingsBuilder Search(Action<PDFViewerMessagesDialogsSearchSettingsBuilder> configurator)
Parameters:configuratorAction<PDFViewerMessagesDialogsSearchSettingsBuilder>

The action that configures the search.

Returns:

PDFViewerMessagesDialogsSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs
.Search(search =&gt; search.Close("Custom Close Message"))
)
)
)