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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to trigger the event after moving an appointment?

Thread ID:

Created:

Updated:

Platform:

Replies:

148483 Oct 22,2019 08:58 AM UTC Oct 23,2019 10:30 AM UTC WinForms 1
loading
Tags: ScheduleControl
Marco
Asked On October 22, 2019 08:58 AM UTC

Dear community, how can I do something after an appointment is moved (for example to another day in workweek view)?

thanks a lot and best regards

Arulpriya Ramalingam [Syncfusion]
Replied On October 23, 2019 10:30 AM UTC

Hi Marco, 
 
Thanks for using Syncfusion products. 
 
The ItemChanged event can be used to notify that the appointment item is moved from a date to another date. If you need to notify the action that the appointment in the view is changed to another appointment, the SelectedDates event can  be used. Please make use of the below code and sample. 
 
Code example 
 
//To notify that an appointment is moved from a date to another date. 
scheduleControl1.ItemChanged += ScheduleControl1_ItemChanged; 
//To notify that item is changed in the view. 
scheduleControl1.Calendar.SelectedDates.SelectionsChanged += SelectedDates_SelectionsChanged; 
 
private void SelectedDates_SelectionsChanged(object sender, EventArgs e) 
{ 
    //Code to implement 
} 
 
private void ScheduleControl1_ItemChanged(object sender, ScheduleAppointmentEventArgs e) 
{ 
    //Code to implement 
} 
 
 
Regards, 
Arulpriya 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

Live Chat Icon For mobile
Live Chat Icon