Pivottable lazy load

Hi,

Is there any suggestion how to lazy load data of pivottable.

I have a ValueCollectionDatasource, I would like to load it after the page has been initiated (all other components).

Do you have any example how I could do that ?

Regards

Hi,
By default, if you define the datasource attribute for a pivottable, the datasource will be refreshed (i.e. load data) automatically. See the example.
Do you need to avoid autorefresh and load data in the proper time?
Regards,
Gleb

Hi Gleb,

It’s more when I load the screen, it takes a bit of time to open, because of the pivottabel’s datasouce to load.
It would be great to do that non-blocking the screen while the datasource is loading.

Would be interesting to load the pivotable in a kind of BackgroundTask, only after initiation the page.
Do you have any suggestion how I can do that ?

Regards,
gent

I would recommend you to load data in a background task and populate data source with data after a task is finished.

You can read more about background tasks in the documentation.

Also, I’ve prepared a sample project at GitHub.

Regards,
Gleb

Hi Gelb,

Great, thanks for your replay and the example!

Regards,