Gantt Chart TimeLine parent task EndDate independent from its child task

{
                TaskID: 1,
                TaskName: 'Project Initiation',
                StartDate: new Date('04/02/2019'),
                EndDate: new Date('04/21/2019'),
                resources: "test",
                subtasks: [
                    { TaskID: 2TaskName: 'Identify Site location'StartDate: new Date('04/02/2019'), Duration: 0},
                    { TaskID: 3TaskName: 'Perform Soil test'StartDate: new Date('04/03/2019'), Duration: 3},
                    { TaskID: 4TaskName: 'Soil test approval'StartDate: new Date('04/04/2019'), Duration: 4},
                    { TaskID: 11TaskName: 'Soil test approval'StartDate: new Date('04/04/2019'), Duration: 4},
                ]
            }
1. On dataSource the Parent EndDate is set to 04/21/2019, but the timeline is displayed EndDate 04/09/2019 because of its subTask endate.
Is it possible to show Parent EndDate on timeline?

1 Reply 1 reply marked as answer

PP Pooja Priya Krishna Moorthy Syncfusion Team June 11, 2020 06:56 AM UTC

Hi Patrik, 
In Gantt, we have a concept called taskMode. By default, this property is set as auto. So that all the start dates and end dates are validated automatically. When it is set as manual, the task will render with dates given in the data source.  
When this property is set as custom, the schedule mode value for each tasks can be mapped from data source field. To map this schedule mode field from data source, we need to use taskFields.manual property. So that we can render some tasks with dates automatically validated and some tasks are rendered with manual dates in load time. 
Please refer the below documentation link to know more about this concept. 

Note: When taskMode is set as manual, two parent taskbars will be render, one with auto scheduled and another one with dates given in the data source. 
 
Regards, 
Pooja K 


Marked as answer
Loader.
Up arrow icon