I'm attempting to implement resource availability as at https://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx but I've run into a problem. In scripts.js the window.onAppointmentMoving reads as follows:
var start = args.get_targetSlot().get_startTime();
var end = new Date(start.getTime() + args.get_appointment().get_duration());
highlightIfOccupied(start, end, sender, args);
Unfortunately, this is only accurate if the user is dragging the appointment by clicking the first slot the appointment occupies. If the appointment occupies 2 or more slots and the user clicks any but the first slot the start and end times are no longer accurate. Is there a more accurate way to get the new start and end times of the dragged appointment than trying to infer based on the slot that was clicked?