Checkbox filters

Checkbox filters

colbycolby Posts: 10Questions: 5Answers: 0

Hey, I have a datatable I want to filter a bit...I'd like to make 3 checkbox filters that would fiter out the results. But each of the checkboxes would show/hide multiple values in a certain column. For instance, checking filter 1 would show results from column 2 (result 1, result 2, result 3,..)

What would be the easiest way to implement this? I thought about using searchpanes but do not want to click on all available options...is it possible to use searchpanes as checboxes/buttons only?

Answers

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

    I thought about using searchpanes but do not want to click on all available options

    Are you want to do something like this example?

    What would be the easiest way to implement this?

    Here is a checkbox search example:
    http://live.datatables.net/vipifute/1/edit

    Kevin

  • colbycolby Posts: 10Questions: 5Answers: 0
    edited March 2020

    Hey,

    that would work if I can get an OR operator between filters...is that possible?
    I basically need to see results from all the filters checked not the results which fit all the filters...

    Trying to set up an example here but getting an error...nto sure why though:
    http://live.datatables.net/pesaketi/1/edit

    I also tried it on my live example, but clicking on a filter took at least 10 seconds to reorder. 1500 rows shouldn't be a problem for it? I set it up the same way as I did the example.

    @kthorngren thank you for the help

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    The problem was that the libraries weren't in the correct order - they have dependencies so order is important. I used the Download page to get the correct order: see updated here.

    I'm not sure what the issue is with that though, as it seems to be working as expected.

    Colin

This discussion has been closed.