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.rowMoveSameLevelOnlyPossible Values
true- restricts row moving to the current hierarchy level.false- allows moving rows to a different hierarchy level.
Default Value
falseExamples
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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot