Scheduler showing 1 day appointment over 2 days

1 Answer 18 Views
Scheduler
Euan
Top achievements
Rank 1
Euan asked on 15 Mar 2024, 03:23 PM

Hi,

Using the Maui scheduler if I add a 1 day appointment it shows over 2 days. Is this expected behaviour?

Thanks,

Euan

   Appointments.Add(new Telerik.Maui.Controls.Scheduler.Appointment()
   {
       UniqueId = "999",
       Subject = "Test",
       Location = "Testing",
       Start = DateTime.Now.Date,
       End = DateTime.Now.Date.AddDays(1),
       Category = new SchedulerAppointmentCategory("Crewable", "#FFFF80")
   });


Lance | Senior Manager Technical Support
Telerik team
commented on 15 Mar 2024, 03:59 PM

For an all day appointment, you want to use IsAllDay=True and keep the end date in the same 24 hour period. In your code above, you added a day to the start date, so it is expected to show the appointment span a 2-day period.

Please take a moment to visit this documentation, and here's an example to try:

new Appointment {
                Subject = "Testing",
                Start = DateTime.Today
                End = DateTime.Today.AddHours(11),
                IsAllDay = true
            }

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 15 Mar 2024, 04:08 PM

Hi Euan,

There was a known issue in versions prior to 6.7.0 where a non "IsAllDay" appointment with DateTime.Today + 1 day, could get rendered into the subsequent day.

This has been fixed in v6.7.0, please update to this release and your appointment should now render inside the start day only.

Regards,
Lance | Manager Technical Support
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
Asked by
Euan
Top achievements
Rank 1
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or