I'm trying to drag one appointment up, and another appointment will also move up.
I'm using the following codes. It changes the end time of another appointment, but the scheduler doesn't show any change:
I'm using the following codes. It changes the end time of another appointment, but the scheduler doesn't show any change:
function OnClientAppointmentMoveEnd(sender, eventArgs) {
//if available end time is less then preferred end time, the prefered end time should match the available end time
for (var i = 0; i < apps.get_count(); i++) {
if (apps._array[i]._subject == 'preferred') {
if (apps._array[i].get_end().format('yyyy/mm/dd HH:mm:ss') > newEndTime.format('yyyy/mm/dd HH:mm:ss')) {
apps._array[i].set_end(newEndTime);
break;
}
}
}
}
Please refer to the PNG files