ViewModeChanged: function (sender, args);
sender. Event source.
args. Event information.
The ViewModeChanged event occurs after changing data view layout mode.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Handle the ViewModeChanged event:
// Get an object of the EaxDataView class var dataView = expressBox.getDataView(); // Get view of the Layout button var modeSelector = dataView.getModeSelectorView(); // Handle the ViewModeChanged event modeSelector.ViewModeChanged.add( function () { alert("Data view display mode is changed."); } );
After executing the example each time the ViewModeChanged event occurs, the browser console displays a message that the display mode for data views is changed.
See also: