I know this has been asked before but I cant find a working solution at the moment. I am using a combination of ColReorder, horizontal scrolling and individual column filtering. I cant make the col reorder function work from the top THEAD row and the filtering work from the second THEAD row. Both functions only work if I leave bSortCellsTop
as false
. However, I need the col reordering to be in the first THEAD row as that is better from a usability point of view.
How I can target the second row in THEAD with this function?
table.columns().every( function () {
var that = this;
$( 'input', this.header() ).on( 'keyup change', function () {
if(that.search() !== this.value){
that
.search( this.value )
.draw();
}
});
});
Any help would be greatly appreciated.
Thanks
Chris