Endless scrolling

Endless scrolling

dleedlee Posts: 3Questions: 0Answers: 0
edited August 2009 in General
Hi,

I had a request for a feature: endless scrolling. This is somewhat similar to pagination with a remote server dataset except that the table's scrollbar is positioned to look like it has the entire dataset loaded, but only loads rows based on scroll cursor location. A good example of this is Yahoo's YMail, where e-mail rows are loaded via ajax only when you scroll to it.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    HI dlee,

    Sounds like a good feature. It'd certainly like to add the ability to do scrolling rather than paging - and to my mind that is a CSS problem - it's just a case of figuring out how to actually make it work in all browsers (actually all but IE are easy). That's on the to-do list... Once that's done, it would probably be a fairly quick thing to do to monitor the scrolling position and load new data as required. Nice idea! Like it :-)

    Allan
  • dleedlee Posts: 3Questions: 0Answers: 0
    Hi Allan,

    I'm glad you're excited about Endless Scrolling. It's really neat, and I'm really looking forward to this feature being implemented. When do you think it will be incorporated into DataTables?

    Also, do you have a public development repository where others can see the state of development and submit patches?
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Hi dlee,

    1. Endless scrolling support - Not sure when I'll get the time to investigate what the CSS should be for this, but hopefully sometime in the near(ish) future - lots to do at the moment! In theory it should be fairly easy (tbody{overflow:scroll}), but IE <8 (not sure about 8 itself) naffs this up good and proper...

    2. Public repository - At the moment I'm only using my local CVS repository, but a public one is also on the to-do list (although somewhat further down the priority listing since the source is available). I try to keep the releases more or less current with my development version, so there isn't anything being missed out on. And with patches, they can either be submitted on this forum or sent to me direct: http://datatables.net/contact :-)

    Regards,
    Allan
  • giorgio79giorgio79 Posts: 43Questions: 0Answers: 0
    It seems like this happened:
    http://datatables.net/forums/comments.php?DiscussionID=1867

    http://datatables.net/examples/api/infinite_scroll.html
    :)
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    That example is a little out of date now - this is the one which is using the internals of DataTables to do what is needed: http://datatables.net/examples/basic_init/scroll_y_infinite.html

    Allan
This discussion has been closed.