PDFViewerEventBuilder

Methods

Render(System.String)

Fires when a page is rendered.

For more information see Render event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Render event.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Events(events => events.Render("onRender"))
             )
             

Open(System.String)

Fires when a PDF is opened in the viewer.

For more information see Open event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Open event.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Events(events => events.Open("onOpen"))
             )
             

Error(System.String)

Fires when an error is encountered. By default, a dialog is shown with an error message. The dialog will not be shown if the event is prevented.

For more information see Error event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Error event.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Events(events => events.Error("onError"))
             )