How to implement infinite scrolling? #1198
-
Hi, I've seen many examples in the wiki to do lazy loading using pagination with for example the GraphQL backend service. Nevertheless I didn't saw any example to do lazy loading with infinite scrolling. At first I thought to make my own custom backend service using the interface provided and then use the onViewportChanged event from slickgrid, but the interface seems to be made by design for pagination. I also saw the remotemodel from slickgrid but I'm not sure if it's still suited. All the operations like filtering, sorting, etc. would be done server side. Any suggestions would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You didn't see any example or docs about infinite scrolling simply because it's not a feature of SlickGrid and is not supported. The remotemodel is simply a custom DataView and is not recommended to use at all (I never used it), it was only provided because someone used it from SlickGrid in the past and wanted it in Angular-Slickgrid. This question was also asked in the past and the answer was the same #156 You are correct in saying that it uses lazy loading with pagination for backend services, the way I've implemented that was simply to change data by calling the DataView Good luck |
Beta Was this translation helpful? Give feedback.
-
Infinite Scroll is now supported for both approach of either a local JSON dataset or with Backend Services. See new v8.5.0 release for more info |
Beta Was this translation helpful? Give feedback.
Infinite Scroll is now supported for both approach of either a local JSON dataset or with Backend Services. See new v8.5.0 release for more info