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.

How to round off the minutes while drag and dropping the appointment?

The following steps helps you to round off the appointment dragging interval to specific time such as 15 minutes.

Step 1:  Create an MVC application and include the EJMVC Schedule control in it by referring the following KB link,

https://syncfusion.com/kb/3606/how-to-add-the-ejmvc-schedule-control-in-the-mvc-application

Step 2: Define the DragStop event for Scheduler with appropriate handler. When the appointment is drag and dropped, this event will raise where we can round-off the appointment dragging minutes.

 

Step 3: onDragStop is a function within which the code to round-off the drag and dropped appointment minutes is defined as shown in the below code example,

 

Note: If you wish to round-off to other intervals, replace the value 15 with your appropriate minute value.

Step 4: Run the sample and now you can see the time difference of 15 minutes as dragging interval as shown in the below images,

 

Figure 1: Appointment is drag and dropped to Nov 12, 2015 12.10 PM.

 

Figure 2: Appointment minutes rounded-off to the interval of 15 minutes.

 

Sample Link: http://www.syncfusion.com/downloads/support/directtrac/155535/ze/Drag_and_drop1794655969

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6792 05/04/2016 05/04/2016 ASP.NET MVC Schedule
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.