I am using DataTables Row Grouping Add-on. I used it by select box change event.
Code
In PHP :
I found the solution - remove the draw callback that the grouping plugin creates and reset the group sorting:
var oSettings = jQuery('#table').dataTable().fnSettings();
for (f = 0; f < oSettings.aoDrawCallback.length; f++) {
if (oSettings.aoDrawCallback[f].sName == 'fnRowGrouping') {
oSettings.aoDrawCallback.splice(f, 1);
break;
}
}
oSettings.aaSortingFixed = null;
Hope this helps.