This demo illustrates how to detect changes in a form and notify a user to save/cancel these changes before leaving the page.
For this, use the AttachEditorModificationListener method to attach a handler to the ASPxClientEdit's event which indicates whether a user modified the form's field values since the previous save. The new UserInput event allows tracking any changes within an editor.
After updating a form, the "Save Changes" and "Cancel Changes" buttons become available. When a user attempts to close the page without saving the changes, it raises the onbeforeunload event, and the "Confirm" dialog is shown.