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. Image for the cookie policy date
close icon

How to trigger the event after moving an appointment?

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

1 Reply

AR Arulpriya Ramalingam Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon