Scroller will automatically integrate with DataTables in order to save the scrolling position of the table, if state saving is enabled in the DataTable (bStateSave). This example shows that in practice - to demonstrate, scroll the table and then reload the page.
ID | First name | Last name | ZIP | Country |
---|
$(document).ready(function() { var oTable = $('#example').dataTable( { "sScrollY": "200px", "sAjaxSource": "media/data/2500.txt", "sDom": "frtiS", "bDeferRender": true, "bStateSave": true } ); } );