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

Declaration

public ASPxClientSidePreviewModel GetPreviewModel()
Public Function GetPreviewModel As ASPxClientSidePreviewModel

Returns

Type Description
ASPxClientSidePreviewModel

An object specifying the preview model.

Remarks

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) {
            preview.tabPanel.collapsed(true);
        }
    }
</script>

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