Is there an event to react to when virtual scrolling is triggered?

Hello,

to optimize the performance, I created a cache that provides the data depending on the current view (for example TimelineDay, TimelineWeek...). This ensures that the scheduler has only the most necessary data. However, some customers may have a large amount of bulk data. So in the worst case it could happen that for one month 5000 resources with 10000 appointments have to be provided. For this reason we have integrated virtual scrolling, which renders the data while scrolling.

But now to my actual question. At the current time, all data is provided for the current view. However, in situations like the one mentioned above, the performance suffers. I would be interested to know if there is an event that can be reacted to when the data is re-rendered during virtual scrolling. In the best case this should give me the possibility to provide only the data from the cache that the user also sees. So I could for example only provide the first 20 resources with all associated appointments.

Regards,
Adrien

1 Reply 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team December 14, 2020 11:01 AM UTC

Hi Adrien, 

Greetings from Syncfusion Support..! 

We have validated your shared query at our end and suspect that your requirement is to render the selective resources with the events while scrolling the event and for the same, when we load a large number of resources and events, we have added virtual scrolling support in the timeline views to load a large set of resources and events instantly on scroll. You can dynamically load large number of resources and events in timeline view of the Scheduler by setting true to the allowVirtualScrolling property within the timeline view-specific settings. And for that, we have prepared a sample, which can be viewed from the following link. 


Kindly try the above solution and get back to us if you need any further assistance. 

We will happy to assist you. 

Regards, 
Hareesh 


Marked as answer
Loader.
Up arrow icon