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

Timeline View - Show current time (hour)

5 Answers 704 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Curt
Top achievements
Rank 1
Curt asked on 04 May 2015, 02:10 AM
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?

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 06 May 2015, 06:47 AM
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!
 
0
Curt
Top achievements
Rank 1
answered on 10 May 2015, 10:29 PM
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?
0
Atanas Korchev
Telerik team
answered on 12 May 2015, 08:23 AM

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!
 
0
Rene
Top achievements
Rank 1
answered on 06 Dec 2017, 11:49 AM

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Ă©

0
Veselin Tsvetanov
Telerik team
answered on 08 Dec 2017, 10:07 AM
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.
Tags
Scheduler
Asked by
Curt
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Curt
Top achievements
Rank 1
Rene
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Share this question
or