Restrict several appintments in same day

2 posts, 0 answers
  1. Vuqar
    Vuqar avatar
    2 posts
    Member since:
    Jan 2013

    Posted 05 Jan 2018 Link to this post

    Hi Telerik team, I would like to use Scheduler for hotel room booking. How can I restrict placing two appointments in same day? Thanks in advance.
  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3958 posts

    Posted 08 Jan 2018 Link to this post

    Hello, Vuqar,  

    Thank you for writing.  

    I would recommend you to have a look at our Hotel application which can be started from the Demo application: 

    It is also located in the installation folder of the suite: C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2017\Examples\HotelApp

    As to the overlapping appointments, you have to do it programmatically. In the AppointmentAdded event, you can iterate the RadScheduler.Appointments collection and check the event's time frame and whether it overlaps with the newly added appointment. If there is already an appointment for this time interval, you can remove the new appointment. In addition, the AppointmentMoving event allows you to cancel the new location according to any custom requirement.

    I hope this information helps. Should you have further questions I would be glad to help.
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top