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

Combine/Split Appointment

2 Answers 62 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 01 Aug 2012, 09:03 AM
Hi, Is it possible to split an appointment when I add a new one which intersects an existing appointment? Please check my attached images, Appointment1.png is the existing appointment, when I add a new appointment which intersects with first appointment, I don't want the second appointment to be added below the first appointment, I want it to look like AppointmentSplit.png.

Is this possible?

2 Answers, 1 is accepted

Sort by
0
Accepted
Lancelot
Top achievements
Rank 1
answered on 01 Aug 2012, 09:35 PM
Hi Mark,

In theory you can do this by iterating through your collection of appointments, check if there is a conflict, resolve the conflict by inserting the new appointment time and create two separate appointments (maybe name then Part1 and Part2) to make up the balance. There is no straight forward way to do this with a single line of code, but with a little creativity you could pull it off.

RadCalendar fires off many events (see the list here) that you can use to your advantage. In your case you can use AppointmentCreating to do the iteration of the current appointment list. In the event handler you then do the work to rearrange the appointments to make the split.)

I hope this helps
0
Mark
Top achievements
Rank 1
answered on 02 Aug 2012, 12:19 AM
I see, that's what I have in mind. Thank you for your reply ^_^
Tags
ScheduleView
Asked by
Mark
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Share this question
or