Prerequisites
- A Gantt widget with parent-child task hierarchy configured via the Parent Role parameter
- Edit mode access
Understand the dragChildren Widget Parameter
The dragChildren widget parameter controls whether dragging a parent task automatically moves all its child tasks by the same offset. When enabled, the entire subtree shifts together, preserving the relative schedule. When disabled, only the parent moves and children stay at their original dates.
| Parameter | Type | Default | Description |
|---|---|---|---|
dragChildren | Boolean | true | Move child tasks together with parent on drag |
Enable or Disable Drag Children
- Open the Polarion page containing the Gantt widget
- Edit the widget properties
- Set the Drag Children parameter:
- Yes (default) — children move with parent
- No — only the parent task moves; children remain at their original dates
Toggle Drag Children at Runtime
You can also toggle this behavior during an active edit session using the toolbar:- Enter Edit mode by clicking Edit in the toolbar
- Locate the Drag Children toggle button in the toolbar
- Click it to switch between moving children together or leaving them independent
Range Conflict Detection
When you drag tasks independently (withdragChildren disabled), child tasks may end up outside their parent’s date range. The Gantt can detect and highlight these conflicts:
- Conflicting tasks receive a visual warning style (highlighted border)
- Both the parent and the out-of-range child are marked
- Conflict highlighting clears automatically when the task is moved back within the parent’s range
- Range conflict checks respect the working calendar when evaluating boundaries
Range conflict detection requires explicit enablement. The default configuration has
rangeConflict.enabled = false. When enabled, you can further control detection with rangeConflict.checkStart and rangeConflict.checkEnd to check start date, end date, or both.Automatic Conflict Resolution
When a child task is dragged outside its parent’s date range, the Gantt can automatically resolve the conflict by expanding the parent’s range to accommodate the child’s new position. This resolution works hierarchically — all ancestor tasks in the tree are adjusted, not just the immediate parent. The same resolution applies when a task is resized beyond its parent’s boundaries.Verify Your Configuration
- Enter Edit mode in the Gantt
- Drag a parent task bar to a new date
- If
dragChildrenis enabled, you should now see all child task bars shift by the same number of days - If
dragChildrenis disabled, only the parent bar moves and children remain in place - Toggle the Drag Children toolbar button and repeat the test to confirm the toggle works
See Also
- Prevent Tasks from Moving Outside Parent Range for parent-bound scheduling constraints
- Derive Parent Schedule from Children for the inverse pattern
- Configure Auto-Scheduling for dependency-driven date propagation
- Perform What-If Analysis Without Saving for exploring schedule changes safely
Sources
Sources
Support TicketsSource Code
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetConfig.javaprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/range-conflict/afterDragConflict.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/commands.jsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/config.jsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/ganttPreventMovingOutOfParent.cy.ts