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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load appointments on demand in the 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.

XAML

  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.

C#

  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.

C#

  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:

Schedule_Data_Load_On_Demand

 

 

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5267 07/28/2015 07/28/2015 WPF SfSchedule
Tags:
Did you find this information helpful?
Comments
Frederico Regateiro Nov 17, 2015
How can i achieve this behavior by using mvvm pattern?
Reply
Add Comment
You must log in to leave a comment

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