Skip to main content
A newer version of this page is available. .

WebDocumentViewerBuilder.ClientSideEvents(Action<WebDocumentViewerClientSideEventsBuilder>) Method

Provides access to the WebDocumentViewerClientSideEventsBuilder object that allows you to handle the client-side events specific to the Web Document Viewer.

Namespace: DevExpress.AspNetCore.Reporting.WebDocumentViewer

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

NuGet Package: DevExpress.AspNetCore.Reporting

Declaration

public WebDocumentViewerBuilder ClientSideEvents(
    Action<WebDocumentViewerClientSideEventsBuilder> configure
)

Parameters

Name Type Description
configure Action<WebDocumentViewerClientSideEventsBuilder>

A Action<T> delegate method that allows you to assign handlers to the client-side events using the methods exposed by the WebDocumentViewerClientSideEventsBuilder object, which is passed as the delegate parameter.

Returns

Type Description
WebDocumentViewerBuilder

A WebDocumentViewerBuilder that can be used to further configure the Document Viewer.

Remarks

When defining the delegate method, use the WebDocumentViewerClientSideEventsBuilder object that is passed as a parameter. This object exposes methods whose names correspond to the events available to the Web Document Viewer on the client side. These methods provide the capability to handle these events by passing JavaScript functions as the methods’ parameters.

See Also