DataTables-Hide-Empty-Columns
DataTables-Hide-Empty-Columns copied to clipboard
Visibilty of columns will always be calculated based on full set of data
in the function _checkColumns there is this line https://github.com/jhyland87/DataTables-Hide-Empty-Columns/blob/master/dataTables.hideEmptyColumns.js#L274 used to retrieve the data: var data = this.data().toArray();
you should probably use something like that var data = api.column( this.index(), {search:'applied', order:'applied', filter: 'applied'} ).data();
Jup - good hint, will try it immediately. Was just wondering, why it takes so long time with enabled 'perPage' option - app (client side, 60k rows) gets unfortunately non-responsible and starts hanging.
Edit; still pretty slow - _checkColumns should really check the amount of rows based on pagination/search/filter.