ASPxClientReportDesigner.PreviewParametersSubmitted Event

Occurs after report parameter values are submitted in Print Preview.

Namespace: DevExpress.XtraReports.Web.Scripts

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

Declaration

public event ASPxClientWebDocumentViewerParametersSubmittedEventHandler PreviewParametersSubmitted
Public Event PreviewParametersSubmitted As ASPxClientWebDocumentViewerParametersSubmittedEventHandler

Event Data

The PreviewParametersSubmitted event handler receives an argument of the ASPxClientParametersSubmittedEventArgs type. The following properties provide information specific to this event.

Property Description
Parameters Provides access to report parameters and their submitted values.
ParametersViewModel Provides access to a View Model for report parameters.

Remarks

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