How can I hide some rows after sorting a column?

How can I hide some rows after sorting a column?

gbmapogbmapo Posts: 17Questions: 6Answers: 0

Here is the test case: live.datatables.net/jiferuba/1/edit?html,js,output
Any 'year' column (i.e. from third column to last column) can be sorted on its content (from 0 to whatever number). The rows with no content for this column are in the bottom of the table, as expected.
I woukd like to hide these 'empty' rows in order to show only the rows with a number for this specific column.
How can I do that?
Thanks in advance.

Answers

  • allanallan Posts: 61,734Questions: 1Answers: 10,110 Site admin

    Any row hiding needs to be done by search. In this case, what you would need to do is have a custom plug-in which would check to see if this column is the one being sorted on, and if so, then apply the filter you need.

    Allan

Sign In or Register to comment.