SpreadsheetSettings.ViewModeChanging Property
Fires before the control’s view mode is changed and allows you to cancel the action.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
ViewModeChangingEventHandler | A ViewModeChangingEventHandler delegate method allowing you to implement custom processing. |
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.
Use this event to prepare the control for switching between the Reading and Editing view modes. For example, you can customize the control’s toolbar in the Reading view mode as demonstrated in the online demo.