This example shows how to use RadConfirm
- It can mostly be used for elements that perform a postback, so that we can cancel it, show the confirm and then initiate it again if need be
To call __doPostBack("", ""); you need to provide the UniqueID of the element as the first parameter
The link button, for example, does not provide its UniqueID (i.e. it does not have the name property like the rest of the buttons) and thus __doPostBack() can work with its id (in a simpler environment). Another approach is to evaluate its href property, as it renders a call to __doPostBack() with the correct arguments - i.e. call eval(button.href); instead. This is most useful in a databound control where multiple instances of the button can be found.
- It cannot always be used directly on controls that perform an AJAX request - you may need to perform the AJAX request manually via the RadAjaxManager and thus set the AjaxSettings accordingly
This approach can also be extended for the RadAlert
dialogs, as they also offer callback functions.