Custom search with multiple columns and range search

Custom search with multiple columns and range search

coneconeconecone Posts: 1Questions: 1Answers: 0

Hi,
I'm using datatables with a search input on each column. I want to perform a search based on all inputs, but I also want to add a custom search function, which will be called based on the user input in the search field. For example, if the input value is '12-39', I want to filter the rows with values between these two values.
I want it to work in the following way:
1. Check which columns match the criteria for a range search, using a regular expression
2. Apply a custom search to this columns
3. Apply a smart search to the rest of the columns

I've tried using the search plugin, but cannot apply the both search condition.
I've made a jsbin showing the basic code: live.datatables.net/noxegine/1/edit

Answers

  • kthorngrenkthorngren Posts: 21,171Questions: 26Answers: 4,922

    I don't see your search plugin nor the input for the range search. Please update the test case with what you've tried so we can help. This way we aren't guessing at what you actually have.

    Kevin

This discussion has been closed.