I want to prevent, that by click on the column names the order changes.
I tried:
"ordering": false,
This actually removes the click possibility.But then the ordering does not work anymore. I want to keep that, only prevent the user to be able to click on the column names. I tried everything like:
$(".sorting").addClass('sorting_disabled').removeClass('sorting');
or
$(".sorting").click(function(){return false;});
or
$( ".sorting" ).click(function( event ) {
event.preventDefault();
});
Nothing worked.