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

Not allow overlaps in Appointments

3 Answers 58 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Nick Wood
Top achievements
Rank 1
Nick Wood asked on 24 Apr 2011, 01:01 AM
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

Sort by
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
0
Grant
Top achievements
Rank 1
answered on 30 Nov 2011, 05:38 PM
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.

Is this possible to do?
0
Konstantina
Telerik team
answered on 02 Dec 2011, 10:27 AM
Hello Grant,

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 >>
Tags
ScheduleView
Asked by
Nick Wood
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Grant
Top achievements
Rank 1
Share this question
or