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.
Unfortunately, activation email could not send to your email. Please try again.

SaveModifiedItem event of ScheduleDataProvider class

Thread ID:

Created:

Updated:

Platform:

Replies:

132093 Aug 13,2017 11:02 PM Aug 14,2017 10:05 AM Windows Forms 1
loading
Tags: ScheduleControl
Truth Seeker
Asked On August 13, 2017 11:02 PM

Hello,

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

Mohanraj Gunasekaran [Syncfusion]
Replied On August 14, 2017 10:05 AM

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 
 
 
Regards, 
Mohanraj G 


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.

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.

;