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")
});
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 }