Filter by an array?

Filter by an array?

ChrisGChrisG Posts: 29Questions: 0Answers: 0
edited August 2013 in DataTables 1.9
I'm currently using serverside data and filtering and all of that works fine for the most part. But now I want to actually create a custom filter that only shows rows based on values in an array. How would I go about doing this?

For example, I have an array of numbers "15,23,33,59,68" and when I click a button on my page, I want it to filter to those rows, so it would only show row 15, 23, 33, 59 and 68.

What would be the best way to do this?

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    If you are using server-side processing, then all filtering is done at the server. So you'd need to integrate the custom filter into your server-side script - whatever language / platform that might be in!

    Allan
This discussion has been closed.