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

Binded AppointmentTime of AppointmentTemplate in CustomizationDemo not changing when dragging or resizing.

Binded AppointmentTime of AppointmentTemplate in CustomizationDemo not changing when dragging or resizing. Changes are reflected only after opening editor and saving.
I tried to assign new value in Schedule_AppointmentEndResizing event, but

e.Appointment

Schedule.SelectedAppointment

don't expose AppointmentTime property. How to update AppointmentTime property in

public class Appointment : ScheduleAppointment, INotifyPropertyChanged

?


3 Replies

JM Jeyasri M Syncfusion Team December 23, 2016 10:55 AM UTC

Hi Andrzej, 
 
Thanks for your interest in Syncfusion products. 
 
We have already fixed the issue with Schedule events passed with only Schedule appointments even custom appointments added and the fix has been included in our latest version.  
 
So, could you please upgrade to our latest version 14.4 to achieve this requirement? 
 
Based on your requirement we have modified the Customization demo and please find the modified sample from below link. 
 
In the above sample, we have modified the custom appointment AppointmentTime property value using the AppointmentResizing event by listening its argument values on resizing. 
 
Schedule.AppointmentResizing += Schedule_AppointmentResizing;   
 
 private void Schedule_AppointmentResizing(object sender, AppointmentResizingEventArgs e) 
        { 
            (e.Appointment as Appointment).AppointmentTime = e.To.ToString("hh:mm tt"); 
        } 
 
 
Regards, 
Jeyasri M. 



AN Andrzej December 24, 2016 07:09 AM UTC

The solution helped. Thanks


JM Jeyasri M Syncfusion Team December 27, 2016 03:56 AM UTC

Hi Andrzej,   
  
We glad to hear that the given solution worked for you. Please let us know if you need any further assistance.  
  
Regards,  
Jeyasri M.  


Loader.
Live Chat Icon For mobile
Up arrow icon