Backwards infinite scroll?

Backwards infinite scroll?

jhopkinjhopkin Posts: 2Questions: 0Answers: 0
edited May 2011 in General
Hi, is it possible to use infinite scroll backwards? I'd like to start at the bottom of the table with the scrollbar at the bottom and then fetch/render new rows when the user scrolls up. I've got a lot of rows so it would take too long to load them all up at the start and then jump to the bottom.

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Hi jhopkin,

    I'm afraid that there is no facility for this in DataTables at the moment. The infinite scrolling is linked to scrolling downwards as I had assumed that that would generally be the direction of "travel" (start at top, work the way down, like on a web-page). It might be possible to hack the DataTables scrolling code to do what you are looking for, but I rather suspect that it might be a bit 'fiddly'. Might one option be to simply reverse the sort direction so you do start at the top?

    Regards,
    Allan
  • jhopkinjhopkin Posts: 2Questions: 0Answers: 0
    Hi Allan,

    I would very much like to have this feature. Can I pay you to develop it?

    -James
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Yes :-). If you could get in touch using the contact form here: http://DataTables.net/contact we can discuss it by email.

    Regards,
    Allan
This discussion has been closed.