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

Cancelling appointment form load on client side

3 Answers 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kris
Top achievements
Rank 1
Kris asked on 18 Oct 2011, 10:38 PM

Hello,

How do I cancel the appointment editor popup after the user double-clicks an appointment? I need to implement some validation before I allow the user to edit an appointment. This is an example of my code, but the set_cancel method is not valid apparently.

function onAppointmentDoubleClick(sender, eventArgs) {
              
            var ID = '<%=ID%>';
  
            if (ID == '0') {
                eventArgs.set_cancel(true);
            }
        }

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Oct 2011, 08:39 AM
Hello Kris,

You can try to use the OnClientAppointmentEditing event.

Hope this will be helpful.

Regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Kris
Top achievements
Rank 1
answered on 19 Oct 2011, 03:05 PM
The issue with the OnClientAppointmentEditing is that it loads the window that asks if this edit is only for this occurence. That being said, I see the work around by using the onClientRecurrenceActionDialogShowing event which also allows the set_cancel method.
 
Is there any resource that shows all the methods that can be used with these events? Specifically OnClientAppointmentInserting and OnClientRecurrenceActionDialogShowing...

 

0
Stuart Hemming
Top achievements
Rank 2
answered on 19 Oct 2011, 03:41 PM
Kris,

I suggest starting with the online documentation.

-- 
Stuart
Tags
Scheduler
Asked by
Kris
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Kris
Top achievements
Rank 1
Stuart Hemming
Top achievements
Rank 2
Share this question
or