ASPxClientReportDesigner.PreviewParametersReset Event

Occurs after report parameter values are reset to their default values in Print Preview.

Namespace: DevExpress.XtraReports.Web.Scripts

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


public event ASPxClientWebDocumentViewerParametersResetEventHandler PreviewParametersReset
Public Event PreviewParametersReset As ASPxClientWebDocumentViewerParametersResetEventHandler

Event Data

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

Property Description
Parameters Provides access to report parameters whose values have been reset.
ParametersViewModel Provides access to a View Model for report parameters.


The PreviewParametersReset event fires each time report parameter values are reset (for instance, when an end-user presses the Reset button in the Parameters panel).

The code sample below demonstrates how to use this event to automatically collapse the Parameters panel after resetting parameter values.

<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