We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load appointments on demand in the SfSchedule ?

Platform: WPF |
Control: SfSchedule
Tags: sfschedule

You can load the appointment on demand by using the VisibleDatesChanging event in the SfSchedule control.

Loading the appointment on demand in Schedule.

  1. Create a WinRT application and add Schedule control to it.


  1. Create the appointment collection that needs to be loaded to the Schedule control based on the condition. The following code example creates the appointment collection.


  1. Now, trigger the VisibleDatesChanging event in the Schedule control. Create a new appointment collection to store the filtered appointment from the original appointment collection. In the VisibleDatesChanging event, e.NewValue parameter is used to store the current visible dates of the Schedule control. By using the visible dates collection in the e.NewValue parameter, you can load appointment on demand as given in the following code example.


  1. The appointments are stored in a filtered appointment collection, FilteredAppColl, that has StartTime and EndTime within the visible date’s collection. Then, the filtered appointments are loaded to the Schedule.
  2. On changing the visible dates in the Schedule, the appointments are loaded to the Schedule only when the StartTime and EndTime of appointments are within the visible dates collection.

The following screenshot displays the appointments on Schedule that have StartTime and EndTime within the visible date’s collection.

Figure 1: Schedule appointment loaded on demand

Sample Link:







2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment
Frederico Regateiro
Nov 17, 2015
How can i achieve this behavior by using mvvm pattern? Reply

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile