ColReorder example Server-side processing

Server-side processing can be exceptionally useful in DataTables when dealing with massive data sets, and ColReorder works with this as would be expected.

It is recommend that you use object based data with server-side processing and ColReorder, as this provides easily understandable mapping between the the columns and the data relation on the server, otherwise you need to work out array indexes on each call!

Processing...
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
11
12
13
14
15
16
$(document).ready(function() {
    $('#example').dataTable( {
        dom: 'Rlfrtip',
        processing: true,
        serverSide: true,
        ajax: "../../../examples/server_side/scripts/objects.php",
        columns: [
            { data: "first_name" },
            { data: "last_name" },
            { data: "position" },
            { data: "office" },
            { data: "start_date" },
            { data: "salary" }
        ]
    } );
} );

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