Can I filter all rows above a certain value?

Can I filter all rows above a certain value?

sviviansvivian Posts: 13Questions: 0Answers: 0
edited April 2011 in General
On my table of data, I want to filter everything that's above a certain value. It's a specific value (not user-specified) so I'm using a checkbox.

I see you can filter by a specific value using for example oTable.fnFilter( 'string', 3 )

But instead of a static string, I'd like to compare the 3rd cell of each row against my specific value. Regex doesn't solve this one. Is this possible?

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    Custom filtering can be used to solve this problem: http://datatables.net/examples/plug-ins/range_filtering.html

    Allan
  • sviviansvivian Posts: 13Questions: 0Answers: 0
    Thanks, that looks pretty useful. I actually solved my specific problem with a regex in the end - the data has finite values so with a few character ranges separated by pipes, it worked.
This discussion has been closed.