Is there a way to drag an appointment from one date to another in Scheduler

Answer:

Yes, we can allow/disallow the dragging of appointments to a new location by checking the desired condition within OnDragStart or Dragged event of blazor scheduler.

public void OnDragged(DragEventArgs args)

{

appDraggedStartTime = args.Data.StartTime;

appDraggedEndTime = args.Data.EndTime;

if (appDraggedStartTime != appOriginalStartTime && args.Data.Id == 1)

{

args.Cancel = true;

}

}


Find the sample for dragging an appointment from one date to another in Blazor Schedule from here.


Loader.
Up arrow icon