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.
DayPilot.Gantt.rowMoveSameLevelOnlytrue - restricts row moving to the current hierarchy level.
false - allows moving rows to a different hierarchy level.
falseJavaScript
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"
<!-- ... -->
/>