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 update the ItemsSource collection using default editor?

Platform: WPF |
Control: SfSchedule |
Published Date: April 19, 2015 |
Last Revised Date: May 6, 2016
Tags: sfschedule

You can update the local appointment collection by using the editor events in SfSchedule control. This article explains about how to update the local appointment collection by using default editor.

Updating the local appointment collection using default editor

  1. Create a WPF application and add the SfSchedule control to it.


  1. Create class for declaring custom appointment properties. For listening the properties dynamically, implement the property contained class in INotifyPropertyChanged interface as in the following code example.


  1. Create local appointment collection. For listening the collection dynamically, use ObservableCollection as in the following code example.


  1. Now create AppointmentEditorClosed event that is based on the “e.Action” value of the event argument, where you can perform your actions by setting “e.Handled” as true to avoid the default action done by the editor. Refer to the following code example.


In the above code example, by using the e.EditedAppointment and e.OriginalAppointment value, you can update the custom appointment collection.

  1. Now create the ScheduleAppointmentMapping as in the following code example.


After completing the above steps, run the project and the local appointment collection gets updated when you Add and Delete an appointment using Appointment Editor.




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.

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