Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82109

Option for pagination to neglect hidden rows?

$
0
0
It would be nice to have the option of pagination to ignore hidden rows. Currently if I have a table of 100 rows, of which 50 are hidden and I display 10 rows/page, there will be 10 pages. If this feature is present I'd be seeing only 5 pages.

Example scenario. Consider a table that displays many records. Each record may contain a class: "active" or "inactive". By default I want to show only rows with "active" class. So I hide the inactive ones and apply datatable. Now upon a button click, I want to hide the active rows and show inactive rows. I'd use JS to achieve that and apply datatable again.

I've a workaround as of now but if many people want such a feature, do consider. Thanks.

Viewing all articles
Browse latest Browse all 82109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>