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

PDFViewerDplProcessingSettingsBuilder

Methods

Read(System.Action)

Specifies the configuration of the jQuery.ajax to make an HTTP request to the remote service.

Parameters

configurator - System.Action<PDFViewerDplProcessingReadSettingsBuilder>

The action that configures the read.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .DplProcessing(dpl => {
                    dpl.Read(r => r.Url(Url.Action("GetInitialPdf", "PdfViewer")));
                })
             )

Upload(System.Action)

Specifies the configuration of the jQuery.ajax to make an HTTP POST request to the remote service.

Parameters

configurator - System.Action<PDFViewerDplProcessingUploadSettingsBuilder>

The action that configures the upload.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .DplProcessing(dpl => {
                    dpl.Upload(upload => upload.Url(Url.Action("GetPdf", "PdfViewer")));
                })
             )

Download(System.Action)

Specifies the download configuration.

Parameters

configurator - System.Action<PDFViewerDplProcessingDownloadSettingsBuilder>

The action that configures the download.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .DplProcessing(dpl => {
                    dpl.Download(r => r.Url(Url.Action("DownloadPdf", "PdfViewer")));
                })
             )

LoadOnDemand(System.Boolean)

Specifies whether read requests should be sent for each page. Note that on the server the pageField should be nullable.

Parameters

value - System.Boolean

The value that configures the loadondemand.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .DplProcessing(dpl => {
                    dpl.LoadOnDemand(true);
                })
             )

In this article
Not finding the help you need?