The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientReportDesigner.GetPreviewModel() Method

Provides access to the Document Viewer's client-side model.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll


public ASPxClientSidePreviewModel GetPreviewModel()
Public Function GetPreviewModel As ASPxClientSidePreviewModel


Type Description

An object specifying the preview model.


Call the GetPreviewModel method to obtain the Document Viewer's client-side model and perform the required actions with the Document Viewer UI and the current document.

The code sample below demonstrates how to automatically collapse the Parameters panel after resetting parameter values in the ASPxClientReportDesigner.PreviewParametersReset event handler.

<script type="text/javascript" id="script">
    function previewParametersReset(s, e) {
        var preview = s.GetPreviewModel();
        if (preview) {

<dx:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server">      
    <ClientSideEvents PreviewParametersReset="previewParametersReset"/>  
See Also