How to disable sorting
How to disable sorting
DataTables is fantastic, I am using it for our church. I do not want the table data to be sorted,
It actually already is sorted by the books of the Bible. So, is it possible to disable the sorting?
Will this effect the search in any way?
It actually already is sorted by the books of the Bible. So, is it possible to disable the sorting?
Will this effect the search in any way?
This discussion has been closed.
Replies
"aaSorting": []
Don't know if that is the proper syntax, but will give it a try.
$('#example').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aaSorting": []
} );
I had to add a comma after "full_numbers",
and then I added the line:
"aaSorting": []
Thats all there was to it.
[code]
$(document).ready( function () {
$('#example').dataTable( {
"bSort": false
} );
} )
[/code]
see http://www.datatables.net/usage/features#bSort
HTH
ruzz