WebDocumentViewerClientSideEventsBuilder Class

Enables you to specify handlers for the Web Document Viewer's client-side events.

Namespace: DevExpress.AspNetCore.Reporting.WebDocumentViewer

Assembly: DevExpress.AspNetCore.Reporting.v20.1.dll

Declaration

public class WebDocumentViewerClientSideEventsBuilder
Public Class WebDocumentViewerClientSideEventsBuilder

Remarks

The WebDocumentViewerClientSideEventsBuilder class exposes methods whose names resemble client-side events of the Web Document Viewer. You can pass handlers for the events via the methods' parameter. To access a WebDocumentViewerClientSideEventsBuilder object, use the ClientSideEvents(Action<WebDocumentViewerClientSideEventsBuilder>) method of the WebDocumentViewerBuilder object.

The code below demonstrates how to handle the Web Document Viewer's CustomizeMenuActions client-side event.

@{
    var documentViewer = Html.DevExpress().WebDocumentViewer("webDocumentViewer1")
        .Height("1000px")
        .Bind(Model.Report)
        .ClientSideEvents(configure => { configure.CustomizeMenuActions("customizeMenuActions"); });;
}
@documentViewer

Inheritance

Object
WebDocumentViewerClientSideEventsBuilder
See Also