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

Inhibiting duplication of appointment when dragged with control key

2 Answers 49 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rick Tett
Top achievements
Rank 1
Rick Tett asked on 01 Nov 2011, 07:11 PM
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 Answers, 1 is accepted

Sort by
0
Rick Tett
Top achievements
Rank 1
answered on 01 Nov 2011, 08:32 PM
I think I figured it out. I can override the CanDrop method and return false if the DragDropState property IsControlPressed is true.
0
Valeri Hristov
Telerik team
answered on 02 Nov 2011, 07:59 AM
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 >>

Tags
ScheduleView
Asked by
Rick Tett
Top achievements
Rank 1
Answers by
Rick Tett
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or