This is a migrated thread and some comments may be shown as answers.

Prevent overlapping time-slots

2 Answers 479 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
COMM
Top achievements
Rank 1
COMM asked on 28 Apr 2016, 07:57 AM
Hi

I have a scheduler which is set up with views of timelineMonth and timelineWeek. There are three resources, which represent three different locations. All items are full-day only (isAllDay=true).

Many users have access to the scheduler and can place a reservation in a location for a certain number of days. However, I have a business rule which demands that no two reservations in the same location can be on the same day.

What do I need to do to prevent users placing a new reservation on a location that overlaps with one that's already there?

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 29 Apr 2016, 09:54 AM
Hello,

Both preventing the user to create overlapping events and preventing them to edit events with given properties like UserID (from the other forum post that you opened) can be achieved using the Scheduler events listed in the API. For example of utilizing the edit / move / resize events you can check the following demo which you can use as baseline to achieve the desired behavior in your real project:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
COMM
Top achievements
Rank 1
answered on 29 Apr 2016, 01:33 PM

Thanks Vladimir.

The scheduler.restrictions page gave me enough good examples for me to be able to construct the behavior I needed. 

Tags
Scheduler
Asked by
COMM
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
COMM
Top achievements
Rank 1
Share this question
or