> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nextedy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Editing and Saving Questions

> Common questions about editing tasks, saving changes, and working with the lightbox editor in Nextedy GANTT.

<Info title="Verify in application">
  This page covers editing workflows at a high level. Consult the [Guides](/gantt/guides/index) section for detailed how-to instructions.
</Info>

<AccordionGroup>
  <Accordion title="How do I edit tasks on the Gantt chart?">
    Click the **Edit** button in the Gantt toolbar to enter edit mode. Once in edit mode, you can drag task bars to change dates, resize them to adjust duration, and create dependency links between tasks. All changes are tracked as pending until you explicitly save. If `alwaysedit` is enabled via widget parameters, the Gantt is always in edit mode and no Edit button is shown.
  </Accordion>

  <Accordion title="How do I save my changes?">
    Click the **Save** button in the toolbar to persist all pending changes to Polarion. The save operation sends all modified tasks and dependency links to the server in a single transaction. A progress indicator appears during the save process. If there are no unsaved changes, the save button has no effect.

    | Action          | How                                 | Notes                                     |
    | --------------- | ----------------------------------- | ----------------------------------------- |
    | Enter edit mode | Click **Edit** in toolbar           | Not needed if `alwaysedit` is `true`      |
    | Move a task     | Drag the task bar horizontally      | Changes start and end dates               |
    | Resize a task   | Drag the right edge of the task bar | Changes duration or end date              |
    | Save changes    | Click **Save** in toolbar           | Persists all pending edits to Polarion    |
    | Undo changes    | Use undo in the toolbar             | Multi-step undo of date changes and moves |
  </Accordion>

  <Accordion title="What is the lightbox editor?">
    The lightbox is an inline editing dialog that opens when you double-click a task bar or click the edit icon on a task. It provides form fields for editing task properties such as dates, duration, progress, assigned resources, and custom fields. Changes made in the lightbox are applied to the task when you confirm and are included in the next save operation.
  </Accordion>

  <Accordion title="Can I undo changes before saving?">
    Yes, Gantt supports multi-step undo and redo for task date changes, moves, and resizes. Use the undo/redo controls to step back through your editing history before saving. Once you save, changes are committed to Polarion and can no longer be undone through the Gantt undo feature.

    <Tip title="Undo before saving">
      Always review your changes before clicking Save. Undo is only available for unsaved edits made in the current editing session.
    </Tip>
  </Accordion>

  <Accordion title="What happens if two users edit the same task simultaneously?">
    Gantt uses a last-save-wins approach. There is no real-time conflict detection between concurrent editors. If two users modify the same task, the version saved last overwrites previous changes. Coordinate with your team to avoid editing the same work items at the same time.

    <Warning title="No concurrent edit detection">
      Plan your editing workflows to minimize overlap. The most recently saved version always takes effect.
    </Warning>
  </Accordion>

  <Accordion title="Can I prevent users from editing specific tasks?">
    Yes, set the `readonly` widget parameter to `true` to make the entire Gantt chart read-only. For more granular control, individual tasks can be set to read-only mode, which prevents drag, resize, and edit operations on those specific tasks while keeping the rest of the chart editable.

    <Info title="Verify in application">
      Per-task read-only control may be configured through item scripts or task properties. Check the reference documentation for available options.
    </Info>
  </Accordion>

  <Accordion title="Does the Gantt toolbar have a fullscreen mode?">
    Yes, when the `maximize` widget parameter is set to `true`, a fullscreen toggle button appears in the toolbar. Clicking it expands the Gantt chart to fill the browser window, providing more screen space for viewing and editing large project schedules.

    For editing setup details, see [Set Up a Basic Gantt Chart](/gantt/getting-started/setup-basic-gantt).
  </Accordion>
</AccordionGroup>
