Inhibiting duplication of appointment when dragged with control key

3 posts, 0 answers
  1. Rick Tett
    Rick Tett avatar
    3 posts
    Member since:
    Jun 2008

    Posted 01 Nov 2011 Link to this post

    My application associates each appointment with a unique object and I realized today that when the user holds the control key while dragging an appointment (or appointments), the radscheduleview control creates a duplicate appointment. Do you have any suggestions for I can inhibit the creation of duplicates by this method? If not, is there a way I can detect this in the drop event handler?
  2. Rick Tett
    Rick Tett avatar
    3 posts
    Member since:
    Jun 2008

    Posted 01 Nov 2011 Link to this post

    I think I figured it out. I can override the CanDrop method and return false if the DragDropState property IsControlPressed is true.
  3. DevCraft banner
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 02 Nov 2011 Link to this post

    You are right, Rick, overriding the CanDrop is the best way to prevent the appointments from being copied while the user holds Ctrl.

    Best wishes,
    Valeri Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top