ColReorder : possible to freez few columns by column name ?

ColReorder : possible to freez few columns by column name ?

babablacksheepbabablacksheep Posts: 41Questions: 23Answers: 0

Hi,
I came across this situation where in my table, I dont want column-0 , column-2 and column-6 to be reorder-able , I want to freeze them just for reordering only, however they are not fixed columns.

Is there a way that if I define { "reorderable": false } in column options to freeze them from being reordered ?

$('#example').dataTable( {
  "columns": [
    { "reorderable": false },
    null,
    { "reorderable": false },
    null,
    null,
    null,
    { "reorderable": false }
  ]
} );
This discussion has been closed.