Rendered: function (sender, args);
sender. Event source.
args. Event information.
The Rendered event occurs after drawing the express report map.
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 map in the working area. Handle the Rendered event and display value of the View Mode checkbox for the express report in the browser console:
// Get express report map view var eaxMapView = expressBox.getDataView().getMapView() // Handle the Rendered event eaxMapView.Rendered.add(function () { var isViewMode = eaxMapView.getViewMode(); if (isViewMode) { console.log("Express report is in the view mode."); } else { console.log("Express report is in the edit mode."); } }); // Refresh express report map eaxMapView.refreshAll();
After executing the example as the result of express report map refreshing and occurring the Rendered event, the browser console displays a message that the express report is currently in the edit mode.
See also: