noobie help (server side default sorting)
noobie help (server side default sorting)
I'm trying to alter the default sorting settings for my table. I had it working with aaSorting, but then I switched to server side processing which didn't work w/ the aaSorting still set... so I took that out. How do I make it so the default sorting is desc instead of asc for the first column when using server side processing?
Thanks
Thanks
This discussion has been closed.
Replies
Allan
[code]
$(document).ready(function() {
$('#dietTable').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "serverProcessing.php"
"aaSorting": [[ 0, "desc" ]]
} );
} );
[/code]
iribuf is code I ran after deleting the line "aaSorting": [[ 0, "desc"]]. Otherwise they are the same.
Allan