Hi,
I have a grid using ej.data.WebApiAdaptor() and set enableInfiniteScrolling
to true - and all works nicely. Data gets loaded and when at the end of the downloaded data, the grid requests and then displays the newly received data.
Unfortunately I cannot figure out how to show a spinner every time data is getting requested (at the initial load and then every time the grid requests new data).
While I know how to use spinners, I do not know when to trigger them in the scenario of infiniteScrolling.
Any help would be greatly appreciated.
Thanks,
Daniel
Hi Rajapandiyan,
thank you for your information.
As I am using InfiniteScrolling, there is no 'next page' which shows the spinner. (If I am disabling InfiniteScrolling, the spinner shows up when going to the next page - so that's working all fine).
To your questions:
As you write, once the user reaches the end of the scroller, InfiniteScrolling requests more data - and that's when the spinner should show up. Otherwise the user doesn't know if he reached the end of the current loaded dataset, or if there is more on the server to be loaded.
My data request times are quite long for some data (sometimes > 10 seconds), so if there is no spinner, the user is left hanging if more data will show up or not.
3. Share the complete Grid code files.
It is a standard grid:
4. Share the Grid packages version.
version : 19.2.62
5. Share the video demo of reported problem.
Please find it attached. When I wiggle the mouse pointer, that's when I would like a spinner to show up - as the user doesn't know that there is a new data request being processed in the background. He only sees that once the new data shows up.
Thank you very much,
Daniel
Hi Rajapandiyan,
thank you for your response.
This is strange indeed. I could not identify any relevant discrepancies between your and our code.
Please find attached a reduced sample project and also a video of how this project looks at our end. You will see that there is no spinner showing up at the beginning or when the InfiniteScrolling requests more data.
(Though when we call the 'get_syncfusionAssetGridData(null,"<some filter>")' function, it also requests more data, though this time the standard spinner shows up.)
Compared to our sample shared yesterday, we have removed the ChildGrid part of the code as we have been informed that this is not supported together with InfiniteScrolling.
Regards,
Daniel