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

Cancelling OnClientAppointmentDoubleClick

3 Answers 85 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Joe Buckle
Top achievements
Rank 1
Joe Buckle asked on 24 Dec 2009, 08:44 AM
Good day!

Is there anyway to cancel the OnClientAppointmentDoubleClick event without setting the AllowEdit="false"? I want the user to be able to drag the appointment to change the start and end time of an appointment, but without allowing them to edit it via the simple/advanced form.

Thank you very much.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Dec 2009, 10:35 AM
Hello Joe,

Attach 'OnClientAppointmentEditing' event and cancel the event in order to prevent editing of appointment.

javascript:
 
<script type="text/javascript"
    function OnClientAppointmentEditing(sender, args) { 
        args.set_cancel(true); 
    } 
</script> 

-Shinu.
0
Muhammad
Top achievements
Rank 1
answered on 09 Apr 2014, 11:42 PM
I don't want popup to appear but it does even after  eventArgs.set_cancel(true);
Please help!
0
Muhammad
Top achievements
Rank 1
answered on 10 Apr 2014, 12:00 AM
Problem is solved:
Because it was recurring event, I should have caught following event:
function OnClientAppointmentEditing(sender, eventArgs)
{
if(eventArgs.get_editingRecurringSeries())
eventArgs.set_cancel(true);
}

This works
Tags
Scheduler
Asked by
Joe Buckle
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Muhammad
Top achievements
Rank 1
Share this question
or