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

Restrict several appintments in same day

1 Answer 13 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Vuqar
Top achievements
Rank 2
Vuqar asked on 05 Jan 2018, 07:55 PM
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

Sort by
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.
 
Regards,
Dess
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.
Tags
Scheduler and Reminder
Asked by
Vuqar
Top achievements
Rank 2
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or