in my table I have about 25 numeric columns to which I have to set the search by range and I have done so ..... can you tell me if there is a faster method and with fewer lines of code please ??
You could do that in a loop, make $.fn.dataTable.ext.search.push a function, and just call it for multiple times for each of the fields you want filter, passing in the number for each.
Replies
Are you doing something like this example?
https://datatables.net/examples/plug-ins/range_filtering.html
Without seeing your code its hard to say if there are improvements that can be made. Please post a link to your page or a test case replicating the issue. Then we can look to see what you are doing.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
You could do that in a loop, make
$.fn.dataTable.ext.search.push
a function, and just call it for multiple times for each of the fields you want filter, passing in the number for each.can you give me an example please .. i should pass the fields (min and max and the search column) right?
perhaps you meant something like that ???
Here
here

here it seems to work
That's it, looks good
Hello have a problem, NOT WORK with a Negative Number Here