ASPxClientWebDocumentViewer.BeforeRender Event
Occurs before the Web Document Viewer UI is initialized.
Namespace: DevExpress.XtraReports.Web.Scripts
Assembly: DevExpress.XtraReports.v17.2.Web.Scripts.dll
Declaration
Event Data
The BeforeRender event's data class is Object.
The event data class exposes the following methods:
Method | Description |
---|---|
Equals(Object, Object) | Determines whether the specified object instances are considered equal. |
Equals(Object) | Determines whether the specified object is equal to the current object. |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
GetHashCode() | Serves as the default hash function. |
GetType() | Gets the Type of the current instance. |
MemberwiseClone() | Creates a shallow copy of the current Object. |
ReferenceEquals(Object, Object) | Determines whether the specified Object instances are the same instance. |
ToString() | Returns a string that represents the current object. |
Remarks
Handle the BeforeRender event to perform required actions before the Web Document Viewer’s UI initialization.
The following code snippet demonstrates how to use this event to enable the multi-page mode.
<script type="text/javascript" id="script">
function BeforeRender(s, e) {
e.reportPreview.showMultipagePreview(true);
}
</script>
<dx:ASPxWebDocumentViewer ID="ASPxWebDocumentViewer1" runat="server" ReportSourceId="WebReportDesigner.XtraReport1">
<ClientSideEvents BeforeRender="BeforeRender"/>
</dx:ASPxWebDocumentViewer>
See Also