The onRowMoving event is fired by the Gantt Chart during drag and drop row moving, whenever the target position changes.
You can use this event to implement custom rules for row moving.
DayPilot.Gantt.onRowMoving(args)
args.source
(DayPilot.Task)
args.target
(DayPilot.Task)
args.position
(string) - "child" | "before" | "after" | "forbidden"
You can set the args.position
value to "forbidden"
if you want to forbid the target position.