Articles in this section
Category / Section

How to use SfSchedule's MoveToTime feature?

1 min read

The MoveToTime feature of SfSchedule is used to scroll to specific timeslots, by passing the TimeSpan value. This article explains the MoveToTime feature in SfSchedule control. It is applicable for Day, Week, Work-week and Timeline view.

Note: Implementation and APIs are similar in WinRT, WPF, and Silverlight so you can refer this article for other platforms too.

MoveToTime

Create a WinRT application and add SfSchedule control in it.

XAML

     <syncfusion:SfSchedule  x:Name="Schedule" 
             ScheduleType="Day"/>
 

To move to particular timeslot in Schedule, pass the required TimeSpan value in the MoveTime method.

XAML

      Schedule.MoveToTime(new TimeSpan(6, 0, 0));

Note: Since this method handles the position of scroll viewer, it should be called once the Schedule view is loaded.

The following sample illustrates how you can move to a specific time through the MoveToTime method by simple, button click event.

Sample Link: MoveToTime_WinRT.zip

The following are screenshots for this feature in different views.

Figure 1: MoveToTime method used in Day View

 

Figure 2: MoveToTime method used in Week view

 

Figure 3: MoveToTime method used in Work-week view

 

Figure 4: MoveToTime method used in Timeline view

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied