If you do not want the time of input of date

9 posts, 1 answers
  1. Ikou
    Ikou avatar
    12 posts
    Member since:
    Aug 2015

    Posted 12 Feb Link to this post

    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.

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    833 posts

    Posted 15 Feb Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Ikou
    Ikou avatar
    12 posts
    Member since:
    Aug 2015

    Posted 15 Feb in reply to Ivan Danchev Link to this post

    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.
  5. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    833 posts

    Posted 16 Feb Link to this post

    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!
     
  6. Ikou
    Ikou avatar
    12 posts
    Member since:
    Aug 2015

    Posted 17 Feb in reply to Ivan Danchev Link to this post

    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.

  7. George
    George avatar
    7 posts
    Member since:
    Dec 2013

    Posted 23 Jun Link to this post

    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
  8. Ivan Danchev
    Admin
    Ivan Danchev avatar
    833 posts

    Posted 27 Jun Link to this post

    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.
     
  9. George
    George avatar
    7 posts
    Member since:
    Dec 2013

    Posted 27 Jun in reply to Ivan Danchev Link to this post

    Thanks, I've voted for that feature.

    Can you suggest a workaround in the meantime?

    Thanks,

    George

  10. Ivan Danchev
    Admin
    Ivan Danchev avatar
    833 posts

    Posted 28 Jun Link to this post

    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.
     
Back to Top
Kendo UI is VS 2017 Ready