You could achieve the desired behavior using the ScheduleView DragDropBehavior
. You could either override the CanDrop method in order to check if the DestinationSlot is the required one and if not to prevent the drop. Or you could modify the already dropped Appointment by overriding the DragDropCompleted method and change the Start and the End of the Appointment as required. Here is a sample solution of the second scenario:
var appointment = state.Appointment
var scheduleView = state.ServiceProvider.GetService<IDialogProvider>()
// set the required times
appointment.Start = appointment.Start.AddHours(1);
appointment.End = appointment.End.AddHours(1);
Hope this helps.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>