Here is my table : https://codepen.io/anon/pen/dzjPro
I wan't to sort only first 2 columns, the column Position was not sortable.
Code :
$scope.dataTableOpt = {
"aLengthMenu": [[10, 50, 100,-1], [10, 50, 100,'All']],
"aoSearchCols": [
null
],
};
This doesn't work :
$scope.dataTableOpt = {
"aLengthMenu": [[10, 50, 100,-1], [10, 50, 100,'All']],
"aoSearchCols": [
null
],
"aoColumnDefs": [
{ "aDataSort": [ 0,1 ], "aTargets": [ 0,1 ] }
],
};
Thanks for answers in advance.