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

SaveModifiedItem event of ScheduleDataProvider class

Thread ID:

Created:

Updated:

Platform:

Replies:

132093 Aug 14,2017 03:02 AM UTC Aug 14,2017 02:05 PM UTC WinForms 1
loading
Tags: ScheduleControl
Truth Seeker
Asked On August 14, 2017 03:02 AM UTC

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 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 
 
 
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.

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

;