On Saturday, August 3, 2019 at 7:22:26 PM UTC-7, Ryan wrote: > > Hi all, instead of having multiple page of table, i would like to have 1 > table with vertical scroll bar in SQLFORM.grid so that the user can view > all by scrolling up and down instead of go to multiple pages 1 2 3 > Thanks > > Sometimes called continuous scrolling, or maybe endless scrolling. There's some discussion in the archives, probably from a couple years ago. You will need to do some javascripting to set up the AJAX; the web2py helpers can be used, but I don't know if SQLFORM can be adapted easily. IIRC, Massimo had something on this.
I have mixed feelings about this, because the usual way I've encountered it, if you click on an item for details, and then go back to the list, you start over at the top list, and if you were 5 pages in before clicking, you have to scroll through 5 pages again. If the list takes a lot of memory (you have thumbnails, perhaps), then you may have to have a way to discard the top of the list to make room for more bottom. There is also a modified form where you're only endless for 3-4 pages worth, and the URL increments the page count by that amount each time you click "more". (I've not described it clearly, have I, but it's Monday.) /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/a0cf95e8-d99f-4e60-ac0b-6608a291ce18%40googlegroups.com.