This example simply shows Select being used with DataTables' deferRender
option. Deferred rendering can be particularly useful when Ajax loading data as it allows DataTables to
perform a number of performance enhancing optimisations.
Name | Position | Office | Extn. | Start date | Salary |
---|---|---|---|---|---|
Name | Position | Office | Extn. | Start date | Salary |
Loading... |
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 | $(document).ready( function () { var table = $( '#example' ).DataTable( { ajax: '../../../../examples/ajax/data/objects.txt' , deferRender: true , columns: [ { data: 'name' }, { data: 'position' }, { data: 'office' }, { data: 'extn' }, { data: 'start_date' }, { data: 'salary' } ], select: true } ); } ); |
In addition to the above code, the following Javascript library files are loaded for use in this example: