DayPilot.Gantt.onRowMoving

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.

Declaration

DayPilot.Gantt.onRowMoving(args)

Parameters

  • args.source (DayPilot.Task)

  • args.target (DayPilot.Task)

  • args.position (string) - "child" | "before" | "after" | "forbidden"

Description

You can set the args.position value to "forbidden" if you want to forbid the target position.