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

If you do not want the time of input of date

8 Answers 298 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Ikou
Top achievements
Rank 1
Ikou asked on 12 Feb 2016, 10:26 AM

Hi.

Date of my Gantt chart is entered only on a daily basis.
It does not input of time.

Bar for the Gantt chart task, if the start and end of the same day, you want to display a horizontal bar of the bar from the beginning of the day to the end.
In other words I would like to extend the bar to the end of the end of the day.
Is this possible?

Please detail images with reference to the attached file.

Thanks.

8 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 15 Feb 2016, 06:51 AM
Hello Ikou,

The Gantt Task's start and end properties take a Date() object as value. If you set only a date, "2016/2/15" for example, without specifying the time, this will be equivalent to setting "2016/2/15 24:00". This is the Date object's default behavior.
In order for the task to span the whole day (15 February) you have to either set the date to "2016/2/16" or set it to 15 February but specify the time as well:  "2016/2/15 12:00".

Regards,
Ivan Danchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ikou
Top achievements
Rank 1
answered on 15 Feb 2016, 10:21 AM

Hi, thanks for your answer...

The display of the task to be a day, it was found that you must do the following.
      start: new Date("2016/2/15"),
      end: new Date("2016/2/16")

But in my Gantt chart input per day (start: 2016/2/15 end: 2016/2/15) was at the time, want to bar display of tasks per day.
Internally start: 2016/2/15 end: 2016/2/16 set the, Is it possible to display the "Task Edit Panel" and "Columns" and "Tooltip" in 2016/2/15?

 

Please look at the attached image in order to supplement my words.
0
Accepted
Ivan Danchev
Telerik team
answered on 16 Feb 2016, 03:07 PM
Hello Ikou,

The "End" column, the tooltip and the edit panel all get their data from the task's end property so if it is set to "2016/2/16" that is what will be displayed. Changing the data would require to change the end property's value, to "2016/2/15 23:59" for instance, in order for the day to be changed from 16th to 15th.

Regards,
Ivan Danchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ikou
Top achievements
Rank 1
answered on 18 Feb 2016, 04:27 AM

It seems there is no way to just "2/15" when displaying the internal "2016/2/16".
I'll try to set the "2016/2/15 23:59".

Thanks.

0
George
Top achievements
Rank 1
answered on 23 Jun 2016, 10:05 AM
Hello,

We're doing the same as Ikou, and setting the End time to 23:59, so solve the same problem.

However, since the switch to BST here in the UK, we've noticed that our Gantt charts are displaying tasks 1 hour out (note, our web server always stays on GMT). I suspected that this was a fault in our code, but I noticed today that the Kendo UI demos also exhibit the same behavior.
To see this, set your timezone to BST, go to the gantt demo (http://demos.telerik.com/kendo-ui/gantt/index), and switch to "Week" view.
The tasks are shifted slightly to the right of each day. If you hover over a task, the tooltip says "Start: 1am ...".
If you switch to "Day" view, you can see for sure, that each task starts at 1am and ends at 1am, rather than 12am to 12am.
The date value (in ms) being passed into the first task (ID=7) in your example is 1401667200000, which equates to Monday, June 2, 2014 12:00:00 AM GMT, yet it's show as 1am to me, presumably because my laptop's local time is BST.

This is undesired behavior. For a gantt chart (as opposed to a scheduler/calendar) we just want to use dates, not times, as in MS Project.

Do you have any mode or method available to force the gantt chart to work in date-only mode, like MS Project?
Alternatively, is there any form of work-around which would fix this display issue for our users in a different time zone to the web server?

Thanks,
George
0
Ivan Danchev
Telerik team
answered on 27 Jun 2016, 06:06 AM
Hello George,

There isn't a method that allows preventing the Gantt from displaying the tasks Start and End dates according to the timezone used. We have this logged as a feature request in our Feedback Portal, but currently it is not implemented. I would suggest voting for this feature. Highly demanded features often get implemented in subsequent releases.

Regards,
Ivan Danchev
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
George
Top achievements
Rank 1
answered on 27 Jun 2016, 09:09 AM

Thanks, I've voted for that feature.

Can you suggest a workaround in the meantime?

Thanks,

George

0
Ivan Danchev
Telerik team
answered on 28 Jun 2016, 01:58 PM
Hello George,

Our developers were able to come up with a workaround. Here's a link to a dojo sample: dojo.

Regards,
Ivan Danchev
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Gantt
Asked by
Ikou
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Ikou
Top achievements
Rank 1
George
Top achievements
Rank 1
Share this question
or