1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "Destroy with hidden columns" );
4 $(document).ready( function () {
8 $('#example').dataTable( {
10 "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
12 { "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
13 { "bVisible": false, "aTargets": [ 3 ] }
15 "fnInitComplete": function () {
21 "Check that the number of columns in table is correct",
23 function () { return $('#example tbody tr:eq(0) td').length == 5; }
30 $('#example').dataTable( {
32 "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
35 { "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
36 { "bVisible": false, "aTargets": [ 3 ] }
38 "fnInitComplete": function () {
43 function () { return $('#example tbody tr:eq(0) td').length == 5; }