Skip to main content

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.v24.2.dll

NuGet Package: DevExpress.AspNetCore.Reporting

Declaration

public class WebDocumentViewerClientSideEventsBuilder :
    WebDocumentViewerClientSideEventsBuilderBase<WebDocumentViewerClientSideEventsBuilder, WebDocumentViewerClientSideEvents>

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 in an ASP.NET Core application.

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

Inheritance

Object
WebDocumentViewerClientSideEventsBuilderBase<WebDocumentViewerClientSideEventsBuilder, DevExpress.AspNetCore.Reporting.WebDocumentViewer.Native.DataContracts.WebDocumentViewerClientSideEvents>
WebDocumentViewerClientSideEventsBuilder
See Also