Timeline View - Show current time (hour)

6 posts, 0 answers
  1. Curt
    Curt avatar
    6 posts
    Member since:
    Mar 2015

    Posted 03 May 2015 Link to this post

    I could not find anything in the API, I want the initial timeline view to show the CURRENT hour, not the start of the day.  Is this possible?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 06 May 2015 Link to this post

    Hello Curt,

    Have you tried setting the startTime option? Alternatively you can set showWorkHours to true and then set workDayStart to the time you want the view to start at.

    Regards,
    Atanas Korchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Curt
    Curt avatar
    6 posts
    Member since:
    Mar 2015

    Posted 10 May 2015 in reply to Atanas Korchev Link to this post

    I wasn't aware there was startTime, but I tried it to no avail.  setting workDayStart to the current time would not be a good option, since we want the user to SEE the entire day if they scroll, we just want the default view to be the current time.  I am confused, I would think this would be the most common way one would want to have an initial view?  To show the current day and time?
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 12 May 2015 Link to this post

    Hello Curt,

    We haven't seen such a request so far. Is there an Outlook calendar view which does what you need? Do you just want to display what the current time is? If yes - check the currentTimeMarker option.

    Regards,
    Atanas Korchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Rene
    Rene avatar
    1 posts
    Member since:
    Apr 2017

    Posted 06 Dec 2017 in reply to Atanas Korchev Link to this post

    I know this is old, but i agree with Curt, this is normal expected behaviour in the real world.

    We have a meeting room booking system. If we show the timeline with the current time as starting, then the user cannot scroll back - which happens when they postpone their meeting, and just want to drag it to the right time.

    If you take any outlook calendars, they are able to go back in time just fine...

    So the normal operation, is the user opens the timeline scheduler for each meeting room in each row. Now they all have to start by scrolling to the current time because most bookings are now and forward.

     

    Another problem using the startTime (.StartTime(new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, DateTime.Now.Hour, 0, 0)) ) is that it remembers the hour - so going forward to the next day, i cannot go to 8am.

     

    How about implementing a javascript function like the scrollToHour function someone wrote for the other views?

    https://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/how-to/scrolling/scroll_to_given_time_slot

     

    Hope this is still being read by someone

     

     - René

  6. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    646 posts

    Posted 08 Dec 2017 Link to this post

    Hi Rene,

    We have recently introduced a feature in the Scheduler timeline, that may be applicable for the discussed scenario. The start- and endTime configuration options of the Scheduler could now be used to display 24 hours spanning across two different days. This way you will be able to configure the Scheduler Timeline view to start at the current moment. Here you will find a simple Dojo demonstrating that.

    Alternatively, you could also use the TimelineWeek view with the same configuration. Here you will find a sample implementation scrolling manually to the current time of the TimelineWeek.

    Regards,
    Veselin Tsvetanov
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top