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

OnClientAppointmentMoveStart Stuck in Loop

1 Answer 48 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ChrisC.
Top achievements
Rank 2
ChrisC. asked on 26 Oct 2010, 11:59 PM
I'm trying to use the OnClientAppointmentMoveStart even to check to see if the user is allowed to move an appointment and cancel if they aren't, but I'm running into an issue.  I'm also handling the OnClientAppointmentResizeStart event, which has no issues at all.  As soon as the user clicks the resize handle I have an Alert pop up and inform the user to log in.

The issue I'm facing with the OnClientAppointmentMoveStart is that it does pop up the Alert just like the OnClientAppointmentResizeStart, but it keeps popping it up after the Alert is dismissed.  Any ideas?

Scheduler ASP:
OnClientAppointmentMoveStart="onAppointmentMoveStart"

JScript:
function onAppointmentMoveStart(sender, args) {

              if (isEditMode()) {
                  args.set_cancel(false);
function onAppointmentMoveStart(sender, args) {
if (isEditMode()) {
 ar gs.set_cancel(false);
              }
              else {
args.set_cancel(false);
}
else {
args.set_cancel(true);
                  alert("Log in for permission to rearrange the Q");
args.set_cancel(true);
alert("Log in for permission to rearrange the Q");
}
}

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Oct 2010, 04:23 PM
Hello ChrisC.,

Yes, this is expected. Please, try using OnClientAppointmentMoveEnd instead.

Regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
ChrisC.
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or