Hello,
I think the new-event dialog is slow to open, when there are hundreds of events, because a placeholder event is added to the calendar before the dialog is shown. This causes re-rendering of all events, adding a noticeable delay.
Initial setup for reproduction:
public void OnGet()
{
if (meetings == null)
{
meetings = new List<MeetingViewModel>();
Enumerable.Range(1, 200).ToList().ForEach(x => meetings.Add(new MeetingViewModel()
{
MeetingID = x,
Title = "Daily Event " + x,
Start = DateTime.Now.AddHours(x * 2),
End = DateTime.Now.AddHours(x * 3),
Description = "Description for event " + x,
Attendees = new List<int>() { (x % 3) + 1 },
RecurrenceRule = "FREQ=DAILY;INTERVAL=1"
}));
Enumerable.Range(1, 200).ToList().ForEach(x => meetings.Add(new MeetingViewModel()
{
MeetingID = x,
Title = "Weekly Event " + x,
Start = DateTime.Now.AddHours(x * 2),
End = DateTime.Now.AddHours(x * 3),
Description = "Description for event " + x,
Attendees = new List<int>() { (x % 3) + 1 },
RecurrenceRule = "FREQ=WEEKLY;INTERVAL=1"
}));
}
}
Navigate to the scheduler page