Tasks use wrong startdate

Dear team,

We are currently using your Gantt chart component to create a roadmap. The Roadmap has three levels. The first and third level show the correct start and end times of the tasks in it, the dates we put in StartDate and EndDate properties. However, the second level ganttProperties has the correct startDate and endDate but uses the autoStartDate and AutoEndDate to show the task in the chart, which is incorrect. It calculates those dates by picking the earliest startDate from its children and adds the correct duration to create the autoEndDate.

We don't want to use the autoStartDate, we want the task to use the startDate we give as a property.

We have tried setting Taskmode to 'Manual' and tried setting it to 'Custom', giving the tasks the property isManual: true and set manual: 'isManual' in the taskFields. Both did not help.

How can we ensure the second level, which is a parent, uses the start and end dates we give instead of calculating it based on the start dates of its children.

autoDuration: 2498
autoEndDate: Thu Dec 30 2021 17:00:00 GMT+0100 (Central European Standard Time)
autoLeft: 10539.880952380952
autoStartDate: Sat Feb 28 2015 08:00:00 GMT+0100 (Central European Standard Time)
autoWidth: 4459.598214285715
baselineEndDate: null
baselineLeft: 0
baselineStartDate: null
baselineWidth: 0
cssClass: null
duration: 1532
durationUnit: "day"
endDate: Sun Nov 10 2024 17:00:00 GMT+0100 (Central European Standard Time)
indicators: null
isAutoSchedule: false
isMilestone: false
left: 14132.663690476193
notes: null
predecessorsName: null
progress: 0
progressWidth: 0
resourceInfo: null
startDate: Tue Sep 01 2020 08:00:00 GMT+0200 (Central European Summer Time)
taskType: "FixedDuration"
totalDuration: 13827
totalProgress: 0
uniqueID: "GanttContainer_data_2"
width: 2734.6726190476193
work: 0
workUnit: "hour"

3 Replies 1 reply marked as answer

YS Yannick Smits November 25, 2021 11:12 AM UTC

Hi, I managed to fix the issue by putting the styling of the tasks on the .e-manualparent-main-container.e-gantt-manualparenttaskbar class instead of the custom class I give the tasks using the parentTaskbarTemplate. Perhaps it is a bug that the start dates for the parentTaskbarTemplate component are not correct.


Marked as answer

MS Monisha Sivanthilingam Syncfusion Team November 26, 2021 02:02 AM UTC

Hi Yannick, 
 
Greetings from Syncfusion support. 
 
We are glad hat you found a solution for your issue. However, we are also validating the cause for the parent tasks not rendering in the proper start dates. We will provide you with further details within one business day(November 26, 2021). 
 
We appreciate your patience until then. 
 
Regards, 
Monisha. 



MS Monisha Sivanthilingam Syncfusion Team November 26, 2021 04:33 AM UTC

Hi Yannick, 
  
Thank you for your pateince. 
  
We have confirmed the issue as a bug from our side and have logged a bug report for it. You can track its status from the below feedback link. 
  
  
The fix will be provided in the upcoming 2021 Volume 4 release scheduled for the mid of December, 2021. 
  
We appreciate your patience until then. 
  
Regards, 
Monisha. 



Loader.
Up arrow icon