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

issue appointment disappears

2 Answers 65 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
ks
Top achievements
Rank 1
ks asked on 09 Jan 2014, 09:19 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Kalin
Telerik team
answered on 14 Jan 2014, 08:52 AM
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 >>
0
ks
Top achievements
Rank 1
answered on 14 Jan 2014, 09:22 AM
Thank you!
Tags
ScheduleView
Asked by
ks
Top achievements
Rank 1
Answers by
Kalin
Telerik team
ks
Top achievements
Rank 1
Share this question
or