DataTables-Hide-Empty-Columns icon indicating copy to clipboard operation
DataTables-Hide-Empty-Columns copied to clipboard

Visibilty of columns will always be calculated based on full set of data

Open rmausz82 opened this issue 4 years ago • 1 comments

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();

rmausz82 avatar Sep 08 '20 13:09 rmausz82

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.

tefod-zz avatar Jan 12 '21 15:01 tefod-zz