Greetings,
I am using radscheduler's drag&drop facility to move appointments. i am using OnClientAppointmentMoving method for creating a javascript pop-up for confirmation which includes the old and new endTime for the appointment.
I am using eventArgs.get_targetSlot().get_endTime() method to retrieve the new endTime however the value I receive is 30 min after the beginning time no matter what. (There's no problem for the value of old begin/end times) Also the duration is always shown as 30 min even though the appointments vary between 3 to 4,5 hours.
below is the javascript method I am using for confirmation
Any help is highly appreciated
Kind regards
I am using radscheduler's drag&drop facility to move appointments. i am using OnClientAppointmentMoving method for creating a javascript pop-up for confirmation which includes the old and new endTime for the appointment.
I am using eventArgs.get_targetSlot().get_endTime() method to retrieve the new endTime however the value I receive is 30 min after the beginning time no matter what. (There's no problem for the value of old begin/end times) Also the duration is always shown as 30 min even though the appointments vary between 3 to 4,5 hours.
below is the javascript method I am using for confirmation
function OnClientAppointmentMoveEnd(sender, eventArgs) { sender._dragging = false; var slot = eventArgs.get_appointment(); var target = eventArgs.get_targetSlot(); var msg = 'Please review assignment' + '\n' + '\n' + 'Ticket: ' + slot.get_id().toString() + '\n' + '\n' + 'Current FE: ' + slot.get_resources().getResource(0)._text + '\n' + 'Current End: ' + slot.get_end().toString() + '\n' + '\n' + 'New FE: ' + target._resource._text + '\n' + 'New End: ' + target.get_endTime().toString() + '\n' + '\n' + 'Do you wish to proceed ?'; if (!confirm(msg)) { eventArgs.set_cancel(true); slot.set_backColor(''); alert('Ticket reassignment cancelled'); } sender._dragging = true; }Any help is highly appreciated
Kind regards