Drag Drop, switch to next day?

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 30 Jan 2014 Link to this post

    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
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 05 Feb 2014 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top