Hello,
Until this Feature Request is implemented the possible solution is to use the workaround from my previous post.
Regards,
Svetoslav Dimitrov
Progress Telerik
Then is it possible for the Start Time to start at 5am?
We have a requirement for 5am to 5am working hours.
Hello,
As a workaround you can setup the scheduler as following:
<TelerikScheduler Data="@Appointments" @bind-Date="@StartDate" @bind-View="@CurrView" Height="600px" Width="800px">
<SchedulerViews>
<SchedulerDayView StartTime="@DayStart" />
<SchedulerWeekView StartTime="@DayStart" EndTime="@DayEnd" />
<SchedulerMultiDayView StartTime="@DayStart" NumberOfDays="10" />
</SchedulerViews>
</TelerikScheduler>
@code {
public DateTime StartDate { get; set; } = new DateTime(2019, 11, 29);
public SchedulerView CurrView { get; set; } = SchedulerView.Week;
public DateTime DayStart { get; set; } = new DateTime(2019, 1, 12, 0, 0, 0);
public DateTime DayEnd { get; set; } = new DateTime(2019, 1, 12, 23, 59, 59);
List<SchedulerAppointment> Appointments = new List<SchedulerAppointment>()
{
new SchedulerAppointment
{
Title = "My event",
Description = "The cat needs vaccinations and her teeth checked.",
Start = new DateTime(2019, 11, 26, 5, 0, 0),
End = new DateTime(2019, 11, 27, 5, 0, 0)
}
};
public class SchedulerAppointment
{
public string Title { get; set; }
public string Description { get; set; }
public DateTime Start { get; set; }
public DateTime End { get; set; }
public bool IsAllDay { get; set; }
}
}
Regards,
Svetoslav Dimitrov
Progress Telerik