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

move appointment at the same hour

1 Answer 37 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rang
Top achievements
Rank 1
Rang asked on 18 Feb 2014, 04:48 PM
Hi,

I have an appointment at 8:00 (for example) on 18/02/2014 I would like to move it on the same hour by pressing shift for example.
This mean:
If shift is pressed then change only the date of the appointment
else change the date and the time of the appointment

Regards

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Feb 2014, 11:15 AM
Hi Rang,

You could implement the required logic in the events of theDragDropBehavior of RadScheduleView, for example in CanDrop or Drop methods. For more information about customizing the ScheduleViewDragDropBehavior, please refer to the following help topic:
http://www.telerik.com/help/silverlight/radscheduleview-features-draganddrop.html

Also in order to check whether the Shift key is pressed, I would suggest that you use the System.Windows.Input.Keyboard class, here is a quick example:

public class CustomScheduleViewBehavior : ScheduleViewDragDropBehavior
{  
   public override void Drop(DragDropState state)
   {
       if (Keyboard.Modifiers == ModifierKeys.Shift)
       {
            //implement any additional logic
       }          
       base.Drop(state);
    }
}

I hope this helps.

Regards,
Yana
Telerik
Tags
ScheduleView
Asked by
Rang
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or