Move appointments behavoir

2 posts, 0 answers
  1. g g
    g g avatar
    3 posts
    Member since:
    Dec 2002

    Posted 18 Nov 2013 Link to this post

    Hallo,
    I need lock moving appointment between resources, but leave moving appointment inside its resource.
    How can I do that?

    Thanks
  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 18 Nov 2013 Link to this post

    Hi,

    The desired behavior can be easily achieved through a custom ScheduleViewDragDropBehavior. You will need to override the CanDrop method inside of which you can compare the Resource of the dragged Appointment to the Resource of the DestinationSlot and if they are different to prevent the drop. I have prepared and attached a sample project which demonstrates the exact approach.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top