Table of Contents

Scroller is a virtual rendering plug-in for DataTables which allows large datasets to be drawn on screen every quickly. What the virtual rendering means is 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.

Note that rows in the table MUST all be the same hight. Information in a cell which expands on to multiple lines will cause some odd behaviour in the scrolling.

Scroller is initialised by simply including the letter 'S' in the sDom for the table you want to have this feature enabled on. Note that the 'S' must come AFTER the 't' parameter in sDom.

Key features include:
  • Speed! The aim of Scroller for DataTables is to make rendering large data sets fast
  • Full compatibility with deferred rendering in DataTables 1.8 for maximum speed
  • Correct visual scrolling implementation, similar to "infinite scrolling" in DataTable core
  • Integration with state saving in DataTables (scrolling position is saved)
  • Easy to use