RibbonView.Exited

Syntax

Exited: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The Exited event is fired on selecting the Exit item in main menu of the regular report.

Example

To execute this example the HTML page must contain the ReportBox component named reportBox. Add an event handler for selection of Exit option in the main menu:

    reportBox.getRibbonView().Exited.add(function (sender, args) {
        if (prxReport.getIsDataChanged() == true) {
            reportBox.getRibbonView().showDataSaveDialog(null, PP.Prx.Ui.DataSaveDlgMode.Full);
        }
        else reportBox.setSource(null);
    });

After executing the example selecting the Exit menu item closes the source report, or opens the dialog box for saving modified data if the report table contains unsaved data.

See also:

RibbonView