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

[Solved] RadAjaxPanle and Button with OnClientClick

1 Answer 121 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
skysailor
Top achievements
Rank 1
skysailor asked on 13 Jul 2007, 04:25 AM
Hi,
I have a RadAjaxPanel with a Button inside it that has a OnClientClick property of :-
return confirm('Are you sure you want to remove these open-ended questions?');

This will popup a question. If the user answers OK then the server side event is not posted as expected.

I tried this with a standard UpdatePanel and it works as expected.

Is this a bug? Is there a way around it?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 Jul 2007, 01:21 PM
Hello skysailor,

Use the following syntax instead:

if(!confirm('Are you sure you want to remove these open-ended questions?')) return false;

Best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
skysailor
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or