Endless scrolling
Endless scrolling
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.
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.
This discussion has been closed.
Replies
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
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?
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
http://datatables.net/forums/comments.php?DiscussionID=1867
http://datatables.net/examples/api/infinite_scroll.html
:)
Allan