True scrolling with Datatables
True scrolling with Datatables
Just wondering, weather it's possible to use Datatable in true scrolling mode (without paging, but with dynamic data load on scrolling event) like it's done in jsGrid (http://trirand.com/blog/jqgrid/jqgrid.html -> "New in version 3.6" -> "True scrolling Rows"). In some case paging is not an appropriate solution and it's needed to have an ability to display all the data set on a single page.
If such mode is not currently achieved with DataTable could we expect it to be added in one of the upcoming release?
With kind regards,
If such mode is not currently achieved with DataTable could we expect it to be added in one of the upcoming release?
With kind regards,
This discussion has been closed.
Replies
I really don't have any idea by never having checked DT's source :/
The approach that would be best is simply to put overflow: scroll on the tbody element, but as you would expect this is not supported in IE. It is something that I plan to look at the for next release, and I've done a little experimentation with infinite loading: http://datatables.net/examples/api/infinite_scroll.html . Can't promise it will be in the next release due to time constrains, but I'll certainly be looking into it at some point.
Allan
I'm currently working on a scrolling mode for DataTables 1.7 - of which I hope to be able to release a beta sometime soon-ish (within a fortnight depending on how much time I can spend on it). It won't to infinite scrolling / loading like above (although no doubt that could be added through API requests) - but that might do the job for you?
Regards,
Allan