FixedColumns example Server-side processing

This example shows how FixedColumns can be used with server-side processing in DataTables to cope with very large tables. No special considerations are required, just initialise FixedColumns as you normally would!

Note that the table width is constrained in this example to allow scrolling to occur as the server-side processing data set has a limited number of columns in this demo!

NamePositionOfficeExtn.Start dateSalary
NamePositionOfficeExtn.Start dateSalary

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

1
2
3
4
5
6
7
8
9
10
$(document).ready(function() {
    var table = $('#example').DataTable( {
        scrollY:        "300px",
        scrollX:        true,
        scrollCollapse: true,
        ajax:           "../../../../examples/server_side/scripts/server_processing.php",
        serverSide:     true,
        fixedColumns:   true
    } );
} );

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