I am trying to do a custom multisort UI to sort a jquery datable so the user doesn’t need to hold down shift key. I try to reset the sorting by settings aaSorting = [] or using fnSortNeutral() and it gives error. Any ideas??
“oSettings.fnSortNeutral is not a function”
Here is my code, I am using latest 1.94 from CDN..
var oSettings = $('#' + tableId).dataTable({ "bRetrieve": true });
try
{
oSettings.fnSortNeutral();
}
catch (e) {
alert(JSON.stringify(e.message));
}
Have you tried using
$('#' + tableId).dataTable({ "bRetrieve": true }).fnSort([]);?