Range filter using a select menu

Range filter using a select menu

jorghe88jorghe88 Posts: 3Questions: 1Answers: 0
edited November 2014 in Free community support

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

Answers

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67
    Answer ✓

    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

  • jorghe88jorghe88 Posts: 3Questions: 1Answers: 0

    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?

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67

    Read about the filter_default_label property, it will allow you to set localized labels... datatables localization's are unrelated to yadcf

  • jorghe88jorghe88 Posts: 3Questions: 1Answers: 0

    Yep, now it works totally fine! Thank you again!

This discussion has been closed.