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?

Platform: Silverlight |
Control: SfSchedule |
Published Date: April 30, 2015 |
Last Revised Date: April 30, 2015
Tags: sfschedule

You can update the local appointment collection by using the editor events in 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 SilverLight 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 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:

LocalAppointmentCollectio_SL.zip

ADD COMMENT
You must log in to leave a comment

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