PDFViewerMessagesDialogsSettingsBuilder

Methods

ExportAsDialog(System.Action)

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.

Parameters

configurator - System.Action<PDFViewerMessagesDialogsExportAsDialogSettingsBuilder>

The action that configures the exportasdialog.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Dialogs(dialogs => dialogs
                        .ExportAsDialog(expDialog => expDialog.Title("Export...")) 
                    )
                )
             )
             

OkText(System.String)

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

Parameters

value - System.String

The value that configures the oktext.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Dialogs(dialogs => dialogs.OkText("OK"))
                )
             )
             

Save(System.String)

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

Parameters

value - System.String

The value that configures the save.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Dialogs(dialogs => dialogs.Save("Save"))
                )
             )
             

Cancel(System.String)

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

Parameters

value - System.String

The value that configures the cancel.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Dialogs(dialogs => dialogs.Cancel("Cancel"))
                )
             )
             

Search(System.Action)

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.

Parameters

configurator - System.Action<PDFViewerMessagesDialogsSearchSettingsBuilder>

The action that configures the search.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Dialogs(dialogs => dialogs
                        .Search(search => search.Close("Custom Close Message")) 
                    )
                )
             )