Page 1 of 1

Is there an Initial Lazy Loading Finished event in SchedulerPro ?

Posted: Wed Aug 07, 2024 1:39 pm
by akalanka

In my project, I have configured the Scheduler to lazy-load data.
I have currently set the chunkSize to 10

At the initial scheduler loading, It fires the network call to load resource data 3 times(3 chunks of data).
I need to show the Group Summaries after the initial data set is loaded.

Is there any event that I can listen to and trigger the group summary logic after the initial data set is loaded to the scheduler (first 3 chunks of data, or any number of chunks needed by scheduler at initial load)


Re: Is there an Initial Lazy Loading Finished event in SchedulerPro ?

Posted: Wed Aug 07, 2024 5:14 pm
by ghulam.ghous

Hi there,

You can listen to the lazyLoadEnded event on stores? Does this suffice your needs?
https://bryntum.com/products/scheduler/docs/api/Core/data/Store#event-lazyLoadEnded

It is being fired after every lazyLoad call is completed. We also have a similar event for lazyLoading start as well https://bryntum.com/products/scheduler/docs/api/Core/data/Store#event-lazyLoadStarted.

Hope this helps!


Re: Is there an Initial Lazy Loading Finished event in SchedulerPro ?

Posted: Thu Aug 08, 2024 6:33 am
by akalanka

Thank you for the reply ghulam.
It is not I was looking for. but, thanks for the reply.


Re: Is there an Initial Lazy Loading Finished event in SchedulerPro ?

Posted: Thu Aug 08, 2024 8:52 am
by ghulam.ghous

Hi there,

On a side topic, we do not support any kind of grouping along with lazyLoading. Are you trying to implement the solution on your own? About the event, we do not have any event that fires after a specific number of chunks load. As it stands, one chunk of data is loaded in one api call for a store, maybe you can track of how many calls are being dispatched and resolved on resourceStore by using the above shared events?