View Full Version : The grid support double direction infinite scroll ?

2 Dec 2014, 4:46 PM
I want to use grid to show some data that order by ID, and the use can use mouse scroll up/down to show data.
if the use appoint the ID,the grid may show the record that ID >appoint ID for the first page ,
when the mouse sroll up ,the grid may show the data that ID < appoint ID,
for example:
their have 1000 record ,page size 50 ,appoint the ID = 500;
grid show 500---549 for the first page,
mouse sroll up ,show :450--499; and scrool up up ,show 400--449;

I run this example : ext-\examples\grid\infinite-scroll.html
find it only support scroll 'down' infinite,but not support scroll 'up' when it in the first page,
Can somebody know how to handle this application?

4 Dec 2014, 1:25 PM
Interesting question. I think the intended functionality of the infinitely scrolling grid was to go forward only, as all documentation seems to reflect forward movement when scrolling. As such I'm not sure the grid scrolling would place nicely with starting in the middle.

You might be able to get away with it by manually loading a specific page in the store. Trick is you'd need to know on what "page" your associated record falls in order to load that page and work backwards from there.

Let me know if there are any follow up questions.