expressappframework-devexpress-dot-expressapp-dot-systemmodule-dot-dialogcontroller.md
Specifies whether to save changes made to the object represented by the current pop-up Window’s Detail View when executing the DialogController.AcceptAction.
Namespace : DevExpress.ExpressApp.SystemModule
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public bool SaveOnAccept { get; set; }
Public Property SaveOnAccept As Boolean
| Type | Description |
|---|---|
| Boolean |
true if the object represented by the current pop-up Window’s Detail View is saved when executing the DialogController.AcceptAction; otherwise, false.
|
When the pop-up Window for which the current Dialog Controller is activated contains a Detail View, the Accept button allows you to save the changes made to the current object before closing the Window. To change this behavior, set the SaveOnAccept property to false. In this instance, the Accept button only closes the Window.
By default, the SaveOnAccept property is set to true.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SaveOnAccept property.
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.
e.View = Application.CreateDetailView(nonPersistentObjectSpace, duplicatesList);
e.DialogController.SaveOnAccept = false;
e.DialogController.CancelAction.Active["NothingToCancel"] = false;
See Also