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

ScheduleView Day view scrolling to current time

9 Answers 419 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Sami
Top achievements
Rank 1
Sami asked on 06 Apr 2011, 08:23 AM
Hi,

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

Sort by
0
Valeri Hristov
Telerik team
answered on 06 Apr 2011, 02:15 PM
Hi Sami,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jim
Top achievements
Rank 1
answered on 15 Apr 2011, 02:36 PM
I too am trying to center time window to current time in Timeline View. I cannot find the ScrollTimeRuler Method in the 3rd quarter 2010 release. Where do I find it?
0
Valeri Hristov
Telerik team
answered on 15 Apr 2011, 03:32 PM
Hello Jim,

The method is not visible in the intellisense because it might be changed in the future.

Kind regards,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Peter
Top achievements
Rank 1
answered on 22 Apr 2011, 04:36 PM
How can I get the scrollviewer to persister the VerticalOffset?

Thank you.
0
Valeri Hristov
Telerik team
answered on 26 Apr 2011, 08:07 AM
Hi Peter,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
loowool
Top achievements
Rank 2
answered on 14 Jun 2011, 04:02 PM
Hi Valeri,

Any Updates on this Issue?

Salah A. Malaeb
TeknoBuild
0
Valeri Hristov
Telerik team
answered on 14 Jun 2011, 04:38 PM
Hi Salah,

The automatic keeping of the scroll position is already available, please try the latest internal build.

Kind regards,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
loowool
Top achievements
Rank 2
answered on 23 Jul 2011, 09:29 AM

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
0
Valeri Hristov
Telerik team
answered on 26 Jul 2011, 11:54 AM
Hello Salah,

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!

Tags
ScheduleView
Asked by
Sami
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Jim
Top achievements
Rank 1
Peter
Top achievements
Rank 1
loowool
Top achievements
Rank 2
Share this question
or