Is there any way to show data loading component in Async dataprovider

To prevent UI freeze when dataprovider is loading data i am using enablePushUpdates

grid.getDataCommunicator().enablePushUpdates(asyncTaskExecutorBean);

It works well but only issue is when i scroll down it display empty rows for few seconds when query is complex . There is no loading indicator in grid.

How do you mean UI freeze? Don’t you use a lazy data provider?

There is indeed no loading indicator, but it should be possible to display one. Just implement the fetch so that before running the backend call add the loading indicator to the view and remove it in the end. As the fetch is run on background thread you need to use ui.access(…).

1 Like

Yes its a lazy data provider but for slow running queries ui keepe on showing the loading bar.