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

Drag Drop, switch to next day?

1 Answer 6 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 30 Jan 2014, 09:04 AM
Hi,

is it possible to set a fix range where Appointments could be placed? Example:

Our working day is form 07:00 am to 06:00 pm. Now I have an Appointment from 4pm to 05:30pm and I want to Drag&Drop this Appointment one
our in the future. Normally it is 05:00pm to 06:30pm, but our working day ends on 06:00pm, now I want to switch to the next working day an start on
07:00am.

Is this possible?

Thanks
Best Regards
Rene

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 05 Feb 2014, 08:39 AM
Hi Rene,

RadScheduleView does not provide such a functionality out of the box, however you could achieve similar behavior by customizing the ScheduleViewDragDropBehavior.  In CanDrop or Drop method ( according to the requirement), you could check the DestinationSlots and change the CurrentDate of the ScheduleView.
You could take the ScheduleView instance from the DragDrop state like this:

var scheduleView = state.ServiceProvider.GetService<IDialogProvider>() as RadScheduleView;
scheduleView.CurrentDate = scheduleView.CurrentDate.AddDays(1);

I hope this helps.

Regards,
Yana
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 >>
Tags
ScheduleView
Asked by
ITA
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or