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.
1 Answer, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 Jan 2018, 10:25 AM
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.