Range filtering

Range filtering

PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
edited August 2015 in Free community support

Hello,

I am currently trying to use this plugin http://datatables.net/examples/plug-ins/range_filtering.html on this page here http://avo.xatwebs.co/fairtrade , I am trying to make t read from the xats column but when i use it, it don't work due to using the - to separate the prices, how can i make this work?, so it finds everything between the value i entered.

EDIT: but put low price in min, and high in max

This question has an accepted answers - jump to answer

Answers

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67

    If its for column filtering you can use my yadcf and use the ignore_char option , you can see it in action on the first column of the second table in the showcase

  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1

    I'm not 100% sure how to set this up, and will this work?, as they way i have some of my prices is like 200 - 300 but in your page you posted it dont have anything like that

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67

    Sorry, your original link was broken (with a a , in the end ) and I could not see the page, you are right the was that the range filtering works now in yadcf wont fit for your case

  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1

    Thanks for trying to help and for the quick replys, I have now fixed the link, I did try changing parts of the code to make it work, but had no luck sadly :(

  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
    edited August 2015

    Still had no luck done lots of edits and just ends up breaking it,
    var min = parseInt( $('#min').val(), - parseInt( $('#max').val(), 10 );
    tried doing somethign like that, adding that to others too, but no luck :(

    EDIT: not sure if this would work http://www.w3schools.com/jsref/jsref_split.asp this would be spiting it, im not 100% sure how this works

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

    if its not urgent you can open an issue on yadcf asking for this feature and I will add it

  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1

    Its not urgent at the moment, so i will open an issue asking this to be a feature, if i get round to working this out or a friend does I will send it to you, and see if its good enough for it to be added.

    Thanks
    Paul

This discussion has been closed.