issue appointment disappears

3 posts, 1 answers
  1. Labarque
    Labarque avatar
    10 posts
    Member since:
    Sep 2013

    Posted 09 Jan 2014 Link to this post

    Hello

    Below I have listed the method to reproduce the problem.
    Open the Telerik WPF Controls Examples > ScheduleView > Features > Configurator.
    Check "Snap Appointments" and set "Day Start Time" to for example 08:00.
    Start dragging an appointment to start time 08:00, nothing strange will happen, when you now drag the appointment a little bit higher (so the start time will be earlier) the appointment disappears.

    I assume this is a bug?
    Can you help on this? (maybe a workaround?)

    Thanks!

  2. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 14 Jan 2014 Link to this post

    Hi Labarque,

    We are aware of the explained issue and it has already been logged in our internal backlog. I also logged it in our Feedback portal so you can easily track its status on the following link:
    http://feedback.telerik.com/Project/143/Feedback/Details/98524-if-snapappointments-is-enabled-and-daystarttime-is-set-when-the-appointment-is-d

    However as workaround you can implement a custom ScheduleView DragDropBehavior and override the CanDrop method the following way:

    public override bool CanDrop(DragDropState state)
    {
        var scheduleView = state.ServiceProvider.GetService<IDialogProvider>() as RadScheduleView;
        var destinationSlot = state.DestinationSlots.First();
        if (destinationSlot.Start.Hour < scheduleView.ActiveViewDefinition.DayStartTime.Hours)
            return false;
        return base.CanDrop(state);
    }

    Note that this will only work for DayViewDefinition, you can improve the implementation as per your requirements.

    Hope this will work for you.

    Regards,
    Kalin
    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
  4. Labarque
    Labarque avatar
    10 posts
    Member since:
    Sep 2013

    Posted 14 Jan 2014 Link to this post

    Thank you!
Back to Top