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

RadScript Problem..?

2 Answers 74 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
$uren
Top achievements
Rank 1
$uren asked on 30 May 2011, 01:33 PM
I want to create a confirmation message box using java script. Once they hit ok or cancel i should go to a function written in .cs.
Could anyone give a solution for this ..?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 May 2011, 01:48 PM
Hello Suren,

Unlike the standard confim(), radconfirm() cannot block the execution of the thread and it needs a CallBackFunction. So once the user confirms the postback, in the radconfirm's CallBackFunction you need to use  __doPostBack to call server side event. Check out the following Code Library in achieving this functionality;
Using radconfirm() CallBackFunction to perform a postback

You can also refer to the following code library submission inorder to allow the radconfirm window to simulate the blocking of the execution thread while waiting for user's confirmation:
Block the execution thread with radconfirm.

Thanks,
Princy.
0
$uren
Top achievements
Rank 1
answered on 31 May 2011, 09:33 AM
Hello Princy,

I tried with that link you given but it doesn't work.  And also am not using RadAjax.Net2, RadWindow.Net2, RadToolbar.Net2 i use Telerik.Web.UI only. Do you have any solution for this. Actually the scenario is to delete a customer.The delete button will be there if the user hit the delete btn the rad confirm window should visible after the confirmation if should continue with that btn_click event.
Tags
Ajax
Asked by
$uren
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
$uren
Top achievements
Rank 1
Share this question
or