Scroller examples

Scroller is a virtual rendering plug-in for DataTables which allows large datasets to be quickly drawn. Virtual rendering means that only the visible portion of the table (and a bit to either side to make the scrolling smooth) is drawn, while the scrolling container gives the visual impression that the whole table is visible. This is done by making use of the pagination abilities of DataTables and moving the table around in the scrolling container DataTables adds to the page. The scrolling container is forced to the height it would be for the full table display using an extra element.

Scroller is initialised by simply including the scroller option in the DataTables configuration object.

Key features include:

  • Speed! The aim of Scroller for DataTables is to make rendering large data sets fast
  • Full compatibility with DataTables' deferred rendering for maximum speed
  • Integration with state saving in DataTables (scrolling position is saved)
  • Easy to use