EaxChartView.Rendered

Syntax

Rendered: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The Rendered event occurs after drawing express report chart.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded chart in working area of the express report. Handle the Rendered event and show to the browser console a message that informs the user on the mode in which the express report opens: view mode or edit mode:

// Get express report chart view
var chartView = expressBox.getDataView().getChartView();
// Handle the Rendered event
chartView.Rendered.add(function () {
    var isViewMode = chartView.getViewMode();    
    if (isViewMode) {
        console.log("Express report is in the view mode.");
    } else {
        console.log("Express report is in the edit mode.");
    }   
});

After executing the example on firing the Rendered event the browser console displays a message that the express report is in the edit mode.

See also:

EaxChartView