How to disable the colReorder for fixed columns as dynamically ?
How to disable the colReorder for fixed columns as dynamically ?
//Added default fixed columns
var fixedColumns;
fixedColumns = new $.fn.dataTable.FixedColumns(oTable, {
iLeftColumns: 2
});
//Added default colReorder for fixed columns
var colReorder = new $.fn.dataTable.ColReorder( oTable, {
"iFixedColumns": 2
} );
// while click the time i will assign dynamically fixed columns (which working fine .) but if i tired to make disable reorder for those fixed columns , i cant disable ..
$('.sorting, .sorting_asc, .sorting_desc').click(function(e){
var colorder= $(this).attr('data-column-index');
colorder=parseInt(colorder) +1;
if( e.shiftKey == true )
{
colReorder = new $.fn.dataTable.ColReorder( oTable, {
"iFixedColumns": 3
} )
fixedColumns.s.iLeftColumns = colorder;
fixedColumns.fnRedrawLayout();
oTable.draw();
}
});
// so help me to find out solution for this.. Thanks in Advance