Is there a way to focus the scroll position of the scheculer to the current time of the day.
For example if the day view is set for 24 hour format(0-23 hours) and the current time is 5pm, Is it possible to set the scroll position of the scheduler to 1700 hrs than 0hr.
For example if the day view is set for 24 hour format(0-23 hours) and the current time is 5pm, Is it possible to set the scroll position of the scheduler to 1700 hrs than 0hr.
11 Answers, 1 is accepted
0
Hi santosh,
We do not have this feature built-in in RadScheduler.
However here is a code snippet which demonstrates how to scroll up or down in a day view:
We call the Scroll method with parameter false which means that the view will scroll one position down. If we call the method with parameter true then the view will scroll one position up.
Best wishes,
Boyko Markov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
We do not have this feature built-in in RadScheduler.
However here is a code snippet which demonstrates how to scroll up or down in a day view:
RadScheduler scheduler = this.radScheduler; |
SchedulerDayViewElement dayViewElement = (SchedulerDayViewElement)scheduler.SchedulerElement.ViewElement; |
dayViewElement.DataAreaElement.Table.Scroll(false); |
We call the Scroll method with parameter false which means that the view will scroll one position down. If we call the method with parameter true then the view will scroll one position up.
Best wishes,
Boyko Markov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

santosh
Top achievements
Rank 1
answered on 11 Aug 2009, 06:54 AM
thanks Boyko
That did the trick . Can I achieve the same in week view. If yes can you provide me with the code snippet.
That did the trick . Can I achieve the same in week view. If yes can you provide me with the code snippet.
0
Accepted
Hello santosh,
You can use the same snippet for DayView, WeekView and WorkWeekView as we use the same visual element in these scheduler views.
Please write me back if you need more information.
Best wishes,
Boyko Markov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can use the same snippet for DayView, WeekView and WorkWeekView as we use the same visual element in these scheduler views.
Please write me back if you need more information.
Best wishes,
Boyko Markov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

Satyendra Tripathi
Top achievements
Rank 1
answered on 23 Jun 2010, 01:44 PM
Hi,
How can we implement this in case of web (asp.net) application?
Regards,
Ratnesh
How can we implement this in case of web (asp.net) application?
Regards,
Ratnesh
0
Hello Satyendra,
Please, see this kb article:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-scroll-into-view-a-specific-time-slot-on-initial-page-load.aspx
Greetings,
Peter
the Telerik team
Please, see this kb article:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-scroll-into-view-a-specific-time-slot-on-initial-page-load.aspx
Greetings,
Peter
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

Robert
Top achievements
Rank 1
answered on 02 Mar 2011, 11:28 AM
Hi everyone,
I am experiencing problems when trying to scroll to certain time when I set the RulerScaleSize property of the day/week view.
In my case I set the RangeFactor to 5minutes and RulerScaleSize to 7 and scrolling does not work ( I have tried Scroll(bool), ScrollToTime(Timespan) and ScrollToWorkHours() - nothing works). I am firing this code on ActiveViewChanged.
If I comment the changing of RulerScaleSize scrolling works fine.
Is there a workaround?
Best regards
Robert
I am experiencing problems when trying to scroll to certain time when I set the RulerScaleSize property of the day/week view.
In my case I set the RangeFactor to 5minutes and RulerScaleSize to 7 and scrolling does not work ( I have tried Scroll(bool), ScrollToTime(Timespan) and ScrollToWorkHours() - nothing works). I am firing this code on ActiveViewChanged.
If I comment the changing of RulerScaleSize scrolling works fine.
Is there a workaround?
Best regards
Robert
0
Hi Robert,
Can you specify which control do you use? I don't recognize those properties as being of RadScheduler.
All the best,
Peter
the Telerik team
Can you specify which control do you use? I don't recognize those properties as being of RadScheduler.
All the best,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0

Robert
Top achievements
Rank 1
answered on 03 Mar 2011, 08:44 AM
Hi Peter.
I can give you a simple example of my code:
I have tried this with the latest version of controls and I am experiencing the same problems. The scrolling does not execute.
Regards
Robert
I can give you a simple example of my code:
private
void
Scheduler_ActiveViewChanged(
object
sender, SchedulerViewChangedEventArgs e)
{
if
(e.NewView.ViewType != e.OldView.ViewType && e.NewView.ViewType == SchedulerViewType.Day)
{
(e.NewView
as
SchedulerDayView).RangeFactor = ScaleRange.FiveMinutes;
(e.NewView
as
SchedulerDayView).RulerScaleSize = 7;
SchedulerDayViewElement dayViewElement = (SchedulerDayViewElement)Scheduler.SchedulerElement.ViewElement;
dayViewElement.DataAreaElement.Table.ScrollToTime(
new
TimeSpan(8, 0, 0));
}
}
I have tried this with the latest version of controls and I am experiencing the same problems. The scrolling does not execute.
Regards
Robert
0
Hello Robert,
If you use RadScheduler for WinForms, please post your question in the respective forum -
http://www.telerik.com/community/forums/winforms/scheduler.aspx
Greetings,
Peter
the Telerik team
If you use RadScheduler for WinForms, please post your question in the respective forum -
http://www.telerik.com/community/forums/winforms/scheduler.aspx
Greetings,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0

Robert
Top achievements
Rank 1
answered on 03 Mar 2011, 07:28 PM
Greetings, Peter!
I am sorry but I don't quite follow ...
I am using RadScheduler for Winforms, but this IS winforms forum :
http://www.telerik.com/community/forums/winforms/scheduler/rad-scheduler-scroll-position.aspx
My question is a follow-up on the Boyko's code snippet (second post), so I thought this was the right place to ask...
Should I open another topic anyway?
Regards
Robert
I am sorry but I don't quite follow ...
I am using RadScheduler for Winforms, but this IS winforms forum :
http://www.telerik.com/community/forums/winforms/scheduler/rad-scheduler-scroll-position.aspx
My question is a follow-up on the Boyko's code snippet (second post), so I thought this was the right place to ask...
Should I open another topic anyway?
Regards
Robert
0
Hi Robert,
Indeed this forum was started for WinForms, but then it was changed to ASP.NET AJAX by one of our admins. I am converting it back to WinForms and our colleagues from that team will handle it.
Please, accept our apologies for the misunderstanding.
Best wishes,
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!