ASPxClientReportDesigner.PreviewParametersSubmitted Event

Occurs after report parameter values are submitted in Print Preview.

Namespace: DevExpress.XtraReports.Web.Scripts

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

Declaration

public event ASPxClientWebDocumentViewerParametersSubmittedEventHandler PreviewParametersSubmitted
Public Event PreviewParametersSubmitted As ASPxClientWebDocumentViewerParametersSubmittedEventHandler

The event handler receives an argument of the ASPxClientWebDocumentViewerParametersSubmittedEventHandler type.

The PreviewParametersSubmitted event fires when all parameter values have been entered in the Parameters panel and the Submit button has been pressed.

You can handle this event to check values of requested report parameters, or to automatically collapse the Parameters panel, as demonstrated below.

<script type="text/javascript" id="script">
    function previewParametersSubmitted(s, e) {
        var preview = s.GetPreviewModel();
        if (preview) {
            preview.tabPanel.collapsed(true);
        }
    }
</script>

<dx:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server">      
    <ClientSideEvents PreviewParametersSubmitted="previewParametersSubmitted"/>  
</dx:ASPxReportDesigner>

See Also