DayPilot.Gantt.rowMoveSameLevelOnly

The rowMoveSameLevelOnly property (boolean) prevents Gantt Chart rows from being dragged to a different level in the task hierarchy.

When set to true, rows stay at the same level during drag and drop row moving.

Available since 2023.3.5737.

Declaration

DayPilot.Gantt.rowMoveSameLevelOnly

Possible Values

  • true - restricts row moving to the current hierarchy level.

  • false - allows moving rows to a different hierarchy level.

Default Value

false

Examples

JavaScript

const gantt = new DayPilot.Gantt("dp", {
  rowMoveSameLevelOnly: true,
  // ...
});
gantt.init();

Angular

<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
  rowMoveSameLevelOnly: true,
  // ...
};

React

<DayPilotGantt
  rowMoveSameLevelOnly={true}
  {/* ... */}
/>

Vue

<DayPilotGantt
  :rowMoveSameLevelOnly="true"
  <!-- ... -->
/>

See Also

DayPilot.Gantt.rowMoveHandling

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript