Skip to main content
All docs
V18.2

ASPxClientReportDesigner.ReportTabClosing Event

Occurs when a report tab is about to be closed in the Web Report Designer.

Namespace: DevExpress.XtraReports.Web.Scripts

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

Declaration

public event ASPxClientReportDesignerReportTabClosingEventHandler ReportTabClosing

Event Data

The ReportTabClosing event's data class is ASPxClientReportDesignerTabClosingEventArgs. The following properties provide information specific to this event:

Property Description
Handled Specifies whether or not the event was handled.
ReadyToClose Specifies the JQueryDeferred object, which when resolved, forces the report tab to be closed.
Tab Specifies the report tab currently being processed. Inherited from ASPxClientReportDesignerTabEventArgs.

Remarks

Handle the ReportTabClosing event to perform required actions before a report tab is closed in the Web Report Designer.

The following example demonstrates how to use this event to prevent closing a specific report tab.

<script type="text/javascript" id="script">
    function reportTabClosing(s, e) {
        if (e.Tab.displayName() === "Invoice") {
            e.ReadyToClose.reject();
            e.Handled = true;
        }
    }
</script>

<dx:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server" ClientInstanceName="reportDesigner">  
    <ClientSideEvents ReportTabClosing="reportTabClosing"/>   
</dx:ASPxReportDesigner>

After the report tab was closed, the ASPxClientReportDesigner.ReportTabClosed event occurs.

See Also