Is there any way to prevent overlaps in the appointment so that when a neighbouring appointment is hit it either pushes the neighbouring appointment or stops?
Nick
3 Answers, 1 is accepted
0
Konstantina
Telerik team
answered on 27 Apr 2011, 09:54 AM
Hi Nick,
In ScheduleView the rendering of the appointments is exact, so they are displayed as big as their duration is. What do you mean by neighboring appointments? Appointment that are in the same TimeSlot? Could you please give us some more details what exactly you are trying to achieve, in that way we will be able to provide you with the best solution for your case.
Kind regards,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
I am wondering the same thing. I would like to allow only a single appointment to be set in a given timeslot. If a user starts to drag an appointment where it would overlap with an existing appointment i would like it not to overlap with the previous appointment.
You can implement a custom drag drop behaviour for the ScheduleView. Please find attached a sample project in which this is illustrated. Please pay attention to ConflictCheckingDragDropBehavior class. The functionality for creating custom ViewDefinition and filtering of appointments are also illustrated in this project, so just ignore them.
Hope this helps.
All the best,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>