Unplanned
Last Updated: 01 Apr 2021 05:11 by ADMIN
Andrea
Created on: 01 Apr 2021 05:09
Category: Scheduler
Type: Feature Request
2
Research possible optimization for event editing when view is bound to multitude of events

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:

  1. Clone this example
  2. Modify SchedulerCrudOperations.cshtml.cs to provide 400 events, as follows:
        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

  1. Select the calendar's day-view
  2. Double click somewhere to add a new event
  3. Observe a 500+ millisecond delay before the new-event dialog appears
1 comment
ADMIN
Ianko
Posted on: 01 Apr 2021 05:11

Hello Andrea,

Thank you for your feedback. We will consider this request and research a possible for possible optimizations regarding event editing. 

Regards,
Ianko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.