ASPxClientDocumentPreviewTabPanel.collapsed Property

Specifies whether the panel at the right of the Document Viewer is collapsed.

Namespace: DevExpress.XtraReports.Web.Scripts

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

Declaration

public KnockoutObservable<bool> collapsed { get; }
Public ReadOnly Property collapsed As KnockoutObservable(Of Boolean)

Property Value

Type Description
KnockoutObservable<Boolean>

A knockout observable object that specifies whether the tab panel is collapsed.

The code sample below demonstrates how to automatically collapse the tab 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