1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "aoColumns.bUseRendered" );
4 /* bUseRendered is used to alter sorting data, if false then the original data is used for
5 * sorting rather than the rendered data
8 $(document).ready( function () {
9 /* Check the default */
12 var oTable = $('#example').dataTable( {
14 "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
17 { "fnRender": function (a) {
22 return a.aData[a.iDataColumn];
29 var oSettings = oTable.fnSettings();
32 "Default for bUseRendered is true - rendered data is used for sorting",
33 function () { $('#example thead th:eq(1)').click(); },
34 function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == 'aaa'; }
37 /* Limited to what we can do here as the sorting is done on the server side. So stop here. */