Range filter using a select menu
Range filter using a select menu
jorghe88
Posts: 3Questions: 1Answers: 0
How can I implement a filter by range (like this one: https://jquery-datatables-column-filter.googlecode.com/svn/trunk/numberRange.html ) but using a select instead of two textboxes?
My goal is to have a select like:
Less than 1000
1000-2000
2000-3000
More then 3000
Thank you!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can use the filter_type: 'custom_func' of my yadcf plugin for datatables, see first column example in the following page http://yadcf-showcase.appspot.com/DOM_source.html , see code snippets / docs for more info
Hi Daniel, thank you very much! It was what I were looking for.
The only issue I'm experiencing, is that your plugin seems to be not compatible with the localization. Are you already aware of that?
Read about the filter_default_label property, it will allow you to set localized labels... datatables localization's are unrelated to yadcf
Yep, now it works totally fine! Thank you again!