View.CustomModelSaving Event

Occurs when saving information on a View's editor(s) to the Application Model.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll

Declaration

public event EventHandler<HandledEventArgs> CustomModelSaving
Public Event CustomModelSaving As EventHandler(Of HandledEventArgs)

The event handler receives an argument of the HandledEventArgs type.

This event is raised when calling the current View's View.SaveModel method. This method is used to save settings of the View Items and their layout for a Detail View and settings of the List Editor for a List View. These settings are saved to the Application Model node specified by the View's View.Model property current value. Handle this event to implement a custom technique of saving information on a View. Set the handler's HandledEventArgs.Handled parameter to true, to cancel the default saving process.

See Also