EndDate does not match with EndDate propery

Every row in GanttChar presents my custom object "ActivityForGantt". This object has properties shown in the figure below.  The EndDate property does not match with Gant Chart EndDate. The difference is one day. Please let me know what can be the reason for this. 


Attachment: Screenshots_f43f458e.rar

3 Replies

AG Ajithkumar Gopalakrishnan Syncfusion Team September 4, 2023 10:59 AM UTC

Hi Samo,

Greetings from Syncfusion,

After reviewing the query, we observed that the duration value in the dataSource remains null. The Gantt Chart behavior prioritizes the internal validation of the duration, followed by the validation of the start and end dates. If the duration value is null, the end date is directly validated. However, if the end date falls on a includeWeekend, the includeWeekend is not included unless specified as false before validating the day. Otherwise, if the end date is on a weekday, the data source end is validated and rendered. For further clarification, we have provided a code snippet and a sample for reference.


<
SfGantt DataSource="@TaskCollection" Height="450px" Width="700px" IncludeWeekend="true">

</SfGantt>


Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Weekday-1901719059

Regards,
Ajithkumar G



SA Samo replied to Ajithkumar Gopalakrishnan September 4, 2023 06:16 PM UTC

Thanks for your help and dedicated time. Now it works



AG Ajithkumar Gopalakrishnan Syncfusion Team September 5, 2023 01:53 PM UTC

Hi Samo,

You are welcome.


We are glad that our solution worked for you.


Please contact us if you require any further assistance.


Regards,

Ajithkumar G


Loader.
Up arrow icon