ModeSelectorChanged: function (sender, args);
sender. Event source.
args. Event information. Available arguments: metaModeSelector - selected mode of data view displaying.
The ModeSelectorChanged event occurs after changing data view layout mode in working area of the express report.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Handle the ModeSelectorChanged event:
// Get an object of the EaxDataView class var dataView = expressBox.getDataView(); // Get a view of the Layout button var modeSelector = dataView.getModeSelectorView(); // Handle the ModeSelectorChanged event modeSelector.ModeSelectorChanged.add( function () { // Refresh all contents of the Layout button modeSelector.refreshAll() } );
After executing the example each time the ModeSelectorChanged event occurs, all contents of the button used to select data view layout mode, are refreshed.
See also: