Hi Lars Solberg,
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
- 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.
the Telerik team