Why the indent/outdent function change my object only for new items?

When I add a new task there are many props inside, for example "level".

After click on Indent or Outdent in the new item and log the dataSource, some props disappear from inside the item. 

This happens only when indent a new added item. 

Why does this happen?



1 Reply

SJ Sridharan Jayabalan Syncfusion Team February 10, 2025 09:41 AM UTC

Hi Bruna,


Greetings from Syncfusion.


For your query, we would like to clarify the behavior of the Gantt chart. The reported case reflects the current behavior. We do not maintain all properties (e.g., level) in the dataSource property. Only the properties mapped in taskFields are maintained in the dataSource. All other properties are managed within currentViewData and flatData. Refer to the sample for your reference.


Sample - Ilrtanst (forked) - StackBlitz


Regards,

Sridharan


Loader.
Up arrow icon