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

PDFViewerMessagesSettingsBuilder

Methods

DefaultFileName(System.String)

Specifies the default file name used for Download.

Parameters

value - System.String

The value that configures the defaultfilename.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Messages(messages => messages.DefaultFileName("Document"))
             )

Toolbar(System.Action)

Specifies the localization messages of the toolbar.

Parameters

configurator - System.Action<PDFViewerMessagesToolbarSettingsBuilder>

The action that configures the toolbar.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.Open("Open"))
                )
             )

ErrorMessages(System.Action)

Specifies the localization of the error messages.

Parameters

configurator - System.Action<PDFViewerMessagesErrorMessagesSettingsBuilder>

The action that configures the errormessages.

Example


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

Dialogs(System.Action)

Specifies the localization messages of the dialogs.

Parameters

configurator - System.Action<PDFViewerMessagesDialogsSettingsBuilder>

The action that configures the dialogs.

Example


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

In this article
Not finding the help you need?