Unplanned
Last Updated: 21 Oct 2024 11:44 by Kendo UI
Kendo UI
Created on: 21 Oct 2024 11:44
Category: Scheduler
Type: Feature Request
1
Improve performance of slotClass callback

Currently, the slotClass callback is triggered on every change detection, which also includes user interactions such as dragging or editing an event.

This will become problematic if there is complex logic in the callback and it can get a bit worse if there are bigger slotDivisions in place.

Example with dragging and editing:

https://stackblitz.com/edit/angular-qdjnb6?file=src%2Fapp%2Fedit.service.ts,src%2Fapp%2Fapp.component.ts

While dragging, the slotClass will fire multiple times, and while editing every keypress will trigger the callback. This can be further improved and limit when the slotClass callback is called in the Scheduler component.

 

 

0 comments