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

SaveModifiedItem event of ScheduleDataProvider class


When does the SaveModifiedItem of the ScheduleDataProvider fire? I am not able to get to to fire at all.
Thank you.

1 Reply

MG Mohanraj Gunasekaran Syncfusion Team August 14, 2017 02:05 PM UTC

Hi Truth, 
Thanks for using Syncfusion product. 
This method can be only used to replace the old appointment by new appointment in ScheduleControl which has not accessed in source. Please refer to the below code example, 
Code example 
if (this.scheduleControl1.ItemSelected && this.scheduleControl1.GetScheduleHost().SelectedAppointments.Count>0) 
    foreach (IScheduleAppointment item in this.scheduleControl1.GetScheduleHost().SelectedAppointments) 
        IScheduleAppointment newAppointment = scheduleProvider.NewScheduleAppointment(); 
        newAppointment.Subject = "New appointment"; 
        newAppointment.StartTime = DateTime.Now; 
        newAppointment.EndTime = DateTime.Now.AddDays(1); 
        newAppointment.LabelValue = 3; 
        newAppointment.MarkerValue = 2; 
        scheduleProvider.SaveModifiedItem(newAppointment, item); 
Sample link: ScheduleControl 
Mohanraj G 

Live Chat Icon For mobile
Up arrow icon