This is a migrated thread and some comments may be shown as answers.

Problem with ClientClick and ServerClick events

1 Answer 95 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mike Dennis
Top achievements
Rank 1
Mike Dennis asked on 27 Apr 2009, 04:32 PM
I have a relatively complex page.~26nbsp~3b I am using a RadAjaxManager and a few controls both ASP.NET and RadControls for ASP.NET Ajax.~26nbsp~3b When I setup the AjaxManager to update on either of my buttons~2c I noticed that my button with a ClientClick event isn~27t firing the ServerClick code.~26nbsp~3b I am using the ClientClick event to pop up a confirmation box with the code ~22javascript~3avoid_confirm~3dconfirm~28~27You are about to delete this record~2c and you will not be able to undo this action.~27~29~3breturn void_confirm~3b~22.~26nbsp~3b Is there something I need to do in order to get this to work with the AjaxManager so I can have the confirmation and the server click code~3f~3cbr /~3e

1 Answer, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 30 Apr 2009, 10:12 AM

Hello Mike,

You can use the approach presented on this online demo of RadAjax to use confirmation dialog for certain action and cancel/trigger the server event of the button based on the user's choice:

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/clientevents/defaultcs.aspx

Best regards,

Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Mike Dennis
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or