ASPxClientSpreadsheet.ViewModeChanged Event
Occurs when the control’s view mode is changed.
#Declaration
ViewModeChanged: ASPxClientEvent<ASPxClientSpreadsheetViewModeChangedEventHandler<ASPxClientSpreadsheet>>
#Event Data
The ViewModeChanged event's data class is ASPxClientSpreadsheetViewModeChangedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
old |
Gets the control’s current view mode when the event is triggered. |
#Remarks
The Spreadsheet control provides the Reading view mode that simplifies viewing documents on mobile devices. When the control in this view mode, all documents are opened in the read-only mode, and the ribbon toolbar is replaced with the specific toolbar for the Reading view mode. The Reading view mode is an alternative to the Editing view mode - the view mode that provides the standard full-featured Spreadsheet.
The ViewModeChanged event allows you to detect when the control’s view mode was changed. Use the ASPxClientSpreadsheet.SetViewMode method to change the control’s view mode on the client.