This is a migrated thread and some comments may be shown as answers.

Loading time issue in the radscheduler

2 Answers 153 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Veteran
Dev asked on 14 Feb 2020, 12:36 PM

Hi,

When the record count is more than 500, the loading time of the appointments on the scheduler, loading time of the unassigned calls & drag & drop the assigned calls on the scheduler is taking more time to load, as we have used for loop function for binding the records.

To reduce the time taken we have used parellel.for threading concept but this is not applicable for the below functions.

=> scheduler.Appointments.Add(appointment)
=> scheduler.PerformLayout()
=> scheduler.Refresh()

It is a big problem for us, Can you please suggest if there a concept/method to reduce the loading time in the radscheduler? 

Video link mentioned below for your reference.

Video Link : https://ttprivatenew.s3.amazonaws.com/pulse/suganya-gmail/attachments/12503756/TinyTake14-02-2020-05-55-27.mp4

2 Answers, 1 is accepted

Sort by
0
Dev
Top achievements
Rank 1
Veteran
answered on 18 Feb 2020, 07:52 AM
Any update on my issue? 
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Feb 2020, 02:45 PM
Hello, Rick,

Indeed, according to the provided sample video the appointments load slowly in RadScheduler. Since I am not familiar with the exact setup that you have on your end, it wouldn't be easy to conclude what slows down the events loading.

I suppose that you add the events via code to the RadScheduler.Appointments collection. Note that after adding each Appointment, a refresh operation in RadScheduler is being executed. Hence, the more appointments you insert, the more refresh operations you will get. Thus, the performance may be affected.

The possible solution that I can suggest is to wrap the add operation in RadScheduler.Appointments.BeginUpdate/ RadScheduler.Appointments.EndUpdate block. Thus, the layout will be suspended while you are adding appointments and only one refresh operation will be performed after calling RadScheduler.Appointments.EndUpdate method. It is expected to improve the load time considerably.
            this.radScheduler1.Appointments.BeginUpdate();
            for (int i = 0; i < 500; i++)
            {
                this.radScheduler1.Appointments.Add(new Appointment(DateTime.Now.AddDays(i), TimeSpan.FromMinutes(45), "A"+i));
            }
            this.radScheduler1.Appointments.EndUpdate();
Off topic, note that threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread. You can also provide a sample project in the support ticket when you are submitting it. Thank you in advance for your cooperation. 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Scheduler and Reminder
Asked by
Dev
Top achievements
Rank 1
Veteran
Answers by
Dev
Top achievements
Rank 1
Veteran
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or