Last Updated: 14 Jun 2021 15:52 by ADMIN
Art Handy
Created on: 25 Sep 2015 17:07
Category: UI for ASP.NET AJAX
Type: Feature Request
Change tracking Submit button:
I would like to see a new control, a Submit button, that when added to a web form would act not only as a Submit button but also have the functionality to provide a warning message with options when the user attempts to exit a form on which changes have been made yet not saved, activated by the windows beforeunload event.

When adding the new Submit button to a form options/properties would be available to the developer to select all or specific controls on the form to check for changes. The developer would also have the option of providing the warning message to be displayed as well as being able to title the buttons of the warning message as appropriate, i.e. "Leave without Saving Changes", "Stay on Page and Save Changes".

If the user presses this "Submit" button all the "data changed" flags would be cleared and the beforeunload event will be cleared allowing for redirection or further processing.

Since we as developers want to provide the best possible experience for our web users, this type of control would be invaluable in making the user experience easier and less frustrating. In addition it would save many hours of coding by encapsulating this type functionality in a single control that can be inserted in place of the standard Submit button making it easier and more convenient for a developer to provide professional data forms to users tailored to the specific type of data gathering that the form is being designed for.

I know that there are many jquery/javascript functions that perform similar functionality, but it would be so much more convenient if a Telerik control existed that would perform these functions.
1 comment
Posted on: 14 Jun 2021 15:52

RadButton now offers a confirm dialog which in collaboration with the onbeforeunload will do the trick.