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 by using the default editor?

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

Updating the local appointment collection by using the default editor:

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

XAML

  1. Create the class for declaring the custom appointment properties. To listen to the properties dynamically, implement the property contained class in the INotifyPropertyChanged interface as given in the following code example.

C#

  1. Create the local appointment collection. To listen to the collection dynamically, use the ObservableCollection as given in the following code example.

C#

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

C#

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

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

XAML

After completing the above steps, run the project and the local appointment collection gets updated when you Add, Edit, or Delete an appointment. Use the Edit option in the context menu to edit or delete appointments.

Sample Link:

LocalAppointmentCollection_WinRT.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
4726 04/30/2015 04/30/2015 WinRT SfSchedule
Tags:
Did you find this information helpful?
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