Combine/Split Appointment

3 posts, 1 answers
  1. Mark
    Mark avatar
    24 posts
    Member since:
    Jul 2012

    Posted 01 Aug 2012 Link to this post

    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. Answer
    Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 01 Aug 2012 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mark
    Mark avatar
    24 posts
    Member since:
    Jul 2012

    Posted 01 Aug 2012 Link to this post

    I see, that's what I have in mind. Thank you for your reply ^_^
Back to Top