Scheduler appointment spanning over for 2 days

1 Answer 71 Views
Scheduler and Reminder
PeterT
Top achievements
Rank 1
Iron
PeterT asked on 25 Aug 2022, 06:12 PM

Hi,

I created an appointment in a multiDayView. I have no problem if the appointment duration is within the same day. However, if I span the appointment across two days, the appointment disappeared after I choose dayView or weekView and then move back to multiView. Below is the code snippet of my multiDayView routine. Any help is appreciated. Thanks

            SchedulerMultiDayView multiDayView = new SchedulerMultiDayView();
            this.radScheduler1.ActiveViewType = SchedulerViewType.MultiDay;            
            DateTime current = radCalendar1.SelectedDate;
            this.radScheduler1.ActiveView = multiDayView;
            multiDayView.Intervals.Add(current, 3);       
            multiDayView.ShowAllDayArea = false;

                      

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 30 Aug 2022, 07:16 AM

Hello PeterT,

Thank you for the provided code snippet.

I have tested it and I wasn't able to reproduce this behavior. What I notice in the code snippet, the MultiDatyView is set twice. Setting the ActiveViewType and the ActiveView properties. You can consider using one of these approaches. In your case, you can set the ActiveView property. I am not sure that this is the reason behind this behavior but still you can remove it from your side. I am attaching my sample project which I used to test your case. You can check the steps in the following video file and let me know if I am missing something from your scenario.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Scheduler and Reminder
Asked by
PeterT
Top achievements
Rank 1
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or