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

radconfirm when deleting appointment

3 Answers 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Frederic Latour
Top achievements
Rank 1
Frederic Latour asked on 28 Jul 2008, 11:33 AM
Hello,

I tried to use radconfirm to display a confirmation dialog.
 
I know that the original behaviour of deleting appointment is a confirmation dialog, but it is not transparent with IE in quirks mode. And I can't change quirks mode.
And, I also want to have all my confirmation window to look the same.

But, when on the OnClientAppointmentDeleting event, I put a radconfirm, it doesn't wait for an answer from the client and launches the AppointmentDelete event and my event is deleted before I could choose.

I tried to call set_cancel(true) before calling radconfirm, but if I call set_cancel(false) after, it's still cancelled.

How can I call a radconfirm before deleting an appointment ?

Thanks

3 Answers, 1 is accepted

Sort by
0
Frederic Latour
Top achievements
Rank 1
answered on 28 Jul 2008, 11:46 AM
Sorry,

After some searches in the KB articles, I think I have found what I wanted with this article : http://www.telerik.com/support/kb/article/b454K-baah-b454T-cec-b454c-cec.aspx

I'll try this and go back to you if I have an issue.
0
Frederic Latour
Top achievements
Rank 1
answered on 28 Jul 2008, 12:23 PM
So, this is what I've made :

var isAppointmentDeleting = "false";
function appointmentDeleting(sender, eventArgs) {
 if(isAppointmentDeleting == "false") {
 eventArgs.set_cancel(true);
 var apt = eventArgs.get_appointment();
 radconfirm('Are you sure you want to delete "'+eventArgs.get_appointment().get_subject()+'"', function(arg) {
 if(arg) { 
 isAppointmentDeleting = "true";
 apt.remove();
 }
 }, 330, 100);
 } else
 isAppointmentDeleting = "false";
}

 

0
Michel
Top achievements
Rank 1
answered on 24 Oct 2008, 12:03 PM
Thanks Fred !
Tags
Scheduler
Asked by
Frederic Latour
Top achievements
Rank 1
Answers by
Frederic Latour
Top achievements
Rank 1
Michel
Top achievements
Rank 1
Share this question
or