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,
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.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.