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

Resize set Increment on resize

Thread ID:





123750 Apr 18,2016 02:39 PM UTC Apr 19,2016 10:07 AM UTC UWP 1
Tags: SfSchedule
Asked On April 18, 2016 02:39 PM UTC


is possible to set the increment time when resize or drag/drop appointment on the calendar, exemple (00, 15, 30, 45) ?

Vigneshkumar Ramasamy [Syncfusion]
Replied On April 19, 2016 10:07 AM UTC

Dear Customer,

Thanks for using Syncfusion product.

As of now your requirement of setting increment time when resize the appointment in schedule can be achieved by using AppointmentEndResizing event in the schedule control. We have prepare sample for the same and please find the sample in the below link.

Sample link: Schedule_Resize

Note: In the above sample we have used resize event to set the increment time when resize the appointment. In the same way, you can also achieve your requirement for drag and drop the appointment by using AppointmentEndDragging event in the schedule control.

In the above sample we have used below code snippet to set the time when resize the appointment.

private void Schedule_AppointmentEndResizing(object sender, AppointmentEndResizingEventArgs e)




                (e.Appointment as ScheduleAppointment).EndTime = e.To.AddMinutes(15 - e.To.Minute);


            else if (e.To.Minute> 15 && e.To.Minute <30)


                (e.Appointment as ScheduleAppointment).EndTime = e.To.AddMinutes(30 - e.To.Minute);


           else if(e.To.Minute>30 && e.To.Minute<45)


                (e.Appointment as ScheduleAppointment).EndTime = e.To.AddMinutes(45-e.To.Minute);


           else if(e.To.Minute>45)


                (e.Appointment as ScheduleAppointment).EndTime = e.To.AddMinutes(60 - e.To.Minute);


            e.Cancel = true;


In the above code snippet, based on the value of e.To, we have modified the appointment end time and also we have used e.Cancel = true to stop the default actions of AppointmentEndResizing event.


Vigneshkumar R


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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