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

WebDocumentViewerClientSideEventsBuilder.BeforeRender(String) Method

Sets the name of the JavaScript function or the entire code that will handle the Web Document Viewer‘s BeforeRender client-side event.

Namespace: DevExpress.AspNetCore.Reporting.WebDocumentViewer

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

NuGet Package: DevExpress.AspNetCore.Reporting

Declaration

public WebDocumentViewerClientSideEventsBuilder BeforeRender(
    string callback
)

Parameters

Name Type Description
callback String

The name of a JavaScript function or the entire JavaScript function code used to handle the BeforeRender event.

Returns

Type Description
WebDocumentViewerClientSideEventsBuilder

A WebDocumentViewerClientSideEventsBuilder that can be used to further configure the Document Viewer Client Side Events.

Remarks

The BeforeRender event enables you to customize the Web Document Viewer’s View Model before it is bound to an HTML element and/or Knockout is activated. When implementing a handling function, use the objects passed as parameters. The first parameter passes the event sender that is the ClientDocumentViewer object. The second one provides access to the current View Model of the Web Document Viewer.

See Also