DialogController.Accepting Event
Occurs when executing the current Dialog Controller’s DialogController.AcceptAction.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public event EventHandler<DialogControllerAcceptingEventArgs> Accepting
#Event Data
The Accepting event's data class is DialogControllerAcceptingEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Accept |
Arguments passed to the Dialog |
Cancel |
Gets or sets a value indicating whether the event should be canceled.
Inherited from Cancel |
Show |
Provides access to the Show |
#Remarks
Executing the Action specified by the Dialog Controller’s DialogController.AcceptAction property results in the following, by default:
The current Window contains a Detail View:
The Save Action of the current Window’s ModificationsController is executed, and the Window is closed.
The current Window contains a List View:
The current Window is closed.
Handle the Accepting event to perform custom actions before the default actions defined above are executed. To cancel executing the default actions, set the handler’s DialogControllerAcceptingEventArgs.Cancel parameter to true (by default, it is set to false).
If you need to cancel execution of either the Save Action or closing the current pop-up Window (see above), use the DialogController.SaveOnAccept and DialogController.CanCloseWindow properties.
Note
The Action specified by the Dialog
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Accepting event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.