DataTables example Scroll - horizontal and vertical

In this example you can see DataTables doing both horizontal and vertical scrolling at the same time. Note also that pagination is enabled in this example, and the scrolling accounts for this.

The Javascript shown below is used to initialise the table shown in this example:

1
2
3
4
5
6
$(document).ready(function() {
    $('#example').dataTable( {
        "scrollY": 200,
        "scrollX": true
    } );
} );

In addition to the above code, the following Javascript library files are loaded for use in this example: