Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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