Hi Lars Solberg,
Using
radconfirm to determine if to cancel a
postback event handler is a bit tricky. This comes as the
radconfirm function does not stop the code execution as the browser
alert/
confirm functions do.
That's why some JavaScript tricks should be used. Such a trick is to:
- stop the click event
- call the radconfirm function
- call the item click to make the postback depending on the result.
To my regret this trick includes the usage of the private
_onClick method of the
RadToolBarButton client-side object. We will improve the client-side API of the latter for the first service pack of the suite.
Please, find attached a sample page demonstrating this approach.
Let me know if that helps.
Kind regards,
Erjan Gavalji
the Telerik team