Prevent overlapping time-slots

3 posts, 0 answers
  1. COMM
    COMM avatar
    21 posts
    Member since:
    Oct 2014

    Posted 28 Apr Link to this post


    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. Vladimir Iliev
    Vladimir Iliev avatar
    2155 posts

    Posted 29 Apr Link to this post


    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:

    Vladimir Iliev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. COMM
    COMM avatar
    21 posts
    Member since:
    Oct 2014

    Posted 29 Apr in reply to Vladimir Iliev Link to this post

    Thanks Vladimir.

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

Back to Top