Using Gantt Recalculation Logic Without UI (Headless / Pure Function Usage)

Hello,

I am working with the Syncfusion Gantt component in an Angular application. I need to recalculate task dates, durations, and dependency-based updates outside of the UI layer, for example inside a service or pure function.

The required behavior is to:

  • Accept a list of tasks

  • Accept a modified task ID and change set

  • Recalculate affected tasks (parents / children / predecessors)

  • Return the updated task list, without requiring a mounted Gantt instance in the DOM

Currently, recalculations such as updateRecordByID() and dependency propagation seem to work only when a  Gantt instance is present in the DOM.

My question:
Is there any supported API, internal service, or standalone module in Syncfusion Gantt that allows task schedule recalculation without rendering the Gantt UI?


3 Replies

SJ Sridharan Jayabalan Syncfusion Team November 10, 2025 11:00 AM UTC

Hi Completix ,

 

Greetings from Syncfusion.

 

Our Gantt component does not currently support recalculating task schedules (dates, durations, dependencies) in a headless or non-UI context. All recalculation logic—such as dependency validation, parent-child date adjustments, and methods like updateRecordByID()requires a mounted Gantt instance in the DOM to function properly.



Regards,

Sridharan



CI Completix Info replied to Sridharan Jayabalan November 10, 2025 01:41 PM UTC

Thank you for the answer



DS Deepika Sekar Syncfusion Team November 11, 2025 05:23 AM UTC

Hi Completix,

you're welcome, please get back to us if you need any further assistance.

Regards,

Deepika S


Loader.
Up arrow icon