Best way to auto load more data into a grid
I have been playing with the idea to get data auto loaded into a grid when the user scrolls towards the bottom. I added a listener for scrollevents on the grid and could load more data into it, but:
1) I cannot append data to the grid, only load data again with N more rows. Is there a append feature i have not seen?
2) When the data is loaded, it auto-scrolls back to the top, which again triggers the scroll-event. How can i keep the user at the location he/she was at? It feels a bit hacky to save location before loading more data and it wont work well since a mouse scroll will trigger the listener many times before new data is loaded.
Is there something better to use, perhaps liveGrid?