We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Milestone as child edits parent end date

Hi,

I have a milestone as a child. The milestone edits the end and the parent doesn't cover all day. How to fix this?



Best regards,
Tomasz Tomczykiewicz

Attachment: ganttmilestoneaschild_41c8208a.zip

4 Replies

PP Pooja Priya Krishna Moorthy Syncfusion Team November 14, 2019 10:02 AM UTC

Hi Tomasz, 
 
We checked the sample shared and we were able to reproduce the reported issue when dayWorkingTime is set as 1-23. We logged a bug report for this. You can track its status from below feedback link. 
We will fix this issue and include the fix in our weekly patch release, which is expected to be rolled out on November 27, 2019. 
Now we are providing a workaround solution. You can change the taskbar width by using queryTaskbarInfo event. Please find the below code example. 
 
 
<ejs-gantt ref="gantt" 
  //... 
   :queryTaskbarInfo= "queryTaskbarInfo"> 
</ejs-gantt> 
 
methods: { 
  queryTaskbarInfo: function(args) { 
   if (args.data.startDate.getTime() === args.data.endDate.getTime())   
     args.taskbarElement.children[0].style.width = '11px' 
  }, 
}, 
 
Please get back to us if you require further assistance on this. 
 
Thanks, 
Pooja Priya K. 
 



PP Pooja Priya Krishna Moorthy Syncfusion Team November 29, 2019 11:23 AM UTC

Hi Tomasz, 
Thanks for your patience. 
We have fixed the reported issue. Please find the release notes from below link. 
Please upgrade your Gantt packages to the highest version v17.3.29. We have prepared a sample with latest source, please find the sample from below link. 
Regards, 
Pooja K. 



TT Tomasz Tomczykiewicz December 18, 2019 11:20 AM UTC

Hi,

I found something strange. When a task has a child which is a milestone, then taskbars are moved to the right and enters the next day.


Without a child as a milestone, everything is ok.



Best regards,
Tomasz Tomczykiewicz

Attachment: ganttwrongdayworkingtime_dce7303e.zip


PP Pooja Priya Krishna Moorthy Syncfusion Team December 19, 2019 01:41 PM UTC

Hi Tomasz, 
 
Sorry for the inconveniences caused. 
We are already working on reported issue as improvement feature support to change parent task as milestone when the parent has only milestone child tasks which are render on same date. You can track its status from below feedback link.  
This support will be included in our upcoming Vol 4 SP1 release, which is expected to be rolled out at the end of January 2020. 
 
Regards, 
Pooja K 


Loader.
Up arrow icon