angular-ui / ui-grid

UI Grid: an Angular Data Grid
http://ui-grid.info
MIT License
5.39k stars 2.47k forks source link

Server side data using scroller #4336

Open oriko opened 8 years ago

oriko commented 8 years ago

Hi

As the scroll working now, when you get to the end of the page you making request to get the "next page" data. Is there an option to make the scroll knowing the total size of the data on init and to calculate the page number we want to load by calculating the scroll location?

JLLeitschuh commented 8 years ago

You are talking about infinite scroll: http://ui-grid.info/docs/#/tutorial/212_infinite_scroll

jbarrus commented 8 years ago

I think what @oriko is looking for is virtual paging (example). I can't find any documentation of such a feature in ui-grid. Does it exist and I am missing it, or is this a feature request? :)

Side note: it looks like ag-grid has a less than perfect implementation - when I drag the scroll bar to a new location it queries the data and when it gets loaded the scroll bar jumps. Also as I scroll down and hit the bottom of the current loaded rows on OSX the scrolling abruptly halts (even though the bar is not at the bottom) and my whole page begins scrolling.

lukaszbachman commented 8 years ago

I would be very much interested in knowing if this is possible to achieve with ui-grid 3.x. I'm currently at the point when I'm considering dropping Slick Grid in favor of ui-grid, but lack of having this feature is a serious obstacle for me. I can see that it has been already asked for back in the old days (#113).