This is a migrated thread and some comments may be shown as answers.

Time portion of date in gantt for regular task and milestone

1 Answer 135 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Vaishali
Top achievements
Rank 1
Vaishali asked on 26 Sep 2019, 07:58 PM

Hi,

I am facing challenge because of time portion of the date. In milestone task, both start and end date as well as time should be same. However, even if time part is different, it becomes regular task.

Now, if we keep time part for all dates same say 00:00:00, the tasks which has different start and end date shows a day before, because its just start of the next date. we want end date to be inclusive. and also want milestone type task. Do we have any configuration where time part of gantt is not included in calculation? or some other fix?

https://dojo.telerik.com/eFaCoQOk - This has both example dates.

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 30 Sep 2019, 01:22 PM

Hi Vaishali,

The time part of the Date objects passed as start and end fields of the Gantt tasks will always be taken into account when rendering tasks in the widget. The widget does not offer a configuration option that would allow you to negate that portion of the Date object. Also, the Gantt could not be configured to display the end dates inclusive.

Having that said, what I could suggest you is to keep the real start/end date and time of all tasks and make sure that the milestone tasks always have the same Date for both start and end. This way, the Gantt widget will render the tasks as they are, including the respective hours on each day.

Here you will find a modified version of the Dojo sample, which follows the above suggestion.

I hope that the above explains the case. If you have any other questions on the Gantt widget and its functionality, please do not hesitate to contact us.

Regards,
Veselin Tsvetanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Gantt
Asked by
Vaishali
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or