Is it possible to scroll current time automatically in day view?
Example: current time is 13:00 and business hours start at 6:00 and ends 16:00. How to scroll automatically to 13:00?
This is my related question for Scheduler control. It works but how to get same functionality for ScheduleView?
http://www.telerik.com/community/forums/silverlight/scheduler/scheduler-day-view-scrolling-to-current-time.aspx
Regards,
Sami
9 Answers, 1 is accepted
RadScheduleView has a method named ScrollTimeRuler(TimeSpan, bool), that should be used in such scenarios. The first parameter specifies the time which should be scrolled to, the second specifies whether to scroll that time to the top/left, or not.
All the best,
Valeri Hristov
the Telerik team
The method is not visible in the intellisense because it might be changed in the future.
Kind regards,
Valeri Hristov
the Telerik team
Thank you.
We are working on automatic scroll position persisting right now and I would recommend waiting for our solution. Currently we are intentionally resetting the scroll position in some situations and a workaround will not be perfect.
All the best,
Valeri Hristov
the Telerik team
Any Updates on this Issue?
Salah A. Malaeb
TeknoBuild
The automatic keeping of the scroll position is already available, please try the latest internal build.
Kind regards,
Valeri Hristov
the Telerik team
Hi Valeri,
Let me explain the situation we have:
Scheduler is in Week View, hours Displayed from 0 to 23 (all 24 hours), but since not all hours can fit vertically,a vertical scrollbar is displayed. When the scheduler loads, it starts displaying slots from Hour 0AM, but since Working hours that contain valid slots are usually 8AM to 6PM, the user has to manually scroll to his/her time slots.
When the user changes weeks (i.e. navigates to a next or previous week), we'd like the scheduler to keep the same vertical position that was active in the current week. Instead the scheduler resets the vertical scroll position to the top.
How do we tell the scheduler to maintain the vertical scroll position on week change?
Note that we're using the following delegate to be called when the user changes weeks:
this
.VisibleRangeChangedCommand =
new
DelegateCommand(p =>
this
.AssignSpecialSlots((IDateSpan)p));
Thanks as always
Salah A. Malaeb
TeknoBuild
The scroll position should be kept automatically, unless you set a property that causes reset - such properties are ActiveViewDefinition, ResourceTypesSource, etc. You need to use version larger than 2011.1.62*.
Greetings,
Valeri Hristov
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!