Checkbox as the filter of specific column

Checkbox as the filter of specific column

jimmylin212jimmylin212 Posts: 2Questions: 1Answers: 0

I'd like to build a checkbox filtering in my datatable, and I found that there is one add-on called "columnFilter" which support strong functions with datatable.

The checkbox filtering on "columnFilter":
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/checkbox.html

But when I apply it to my own code, the layout is changed to:
http://oi60.tinypic.com/11hxn2r.jpg

I am not sure if I can ask for help here for another API which is related to datatable.
Is there anyone who met the same problem before or any better suggestion for my purpose?

Thank you.

This question has an accepted answers - jump to answer

Answers

  • RpiechuraRpiechura Posts: 98Questions: 3Answers: 14
    Answer ✓

    Seems to me that you've got 90% of the functionality that you want. I'd suggest wrapping the options into a div or such container and using Jquery / JqueryUI to add the click funtionality that the example has.

    As best as I can tell the reason it's displaying in the header is because the code you added put those divs into the header of the table. If you move them to outside of your dataTables_wrapper class then it won't look as odd.

  • jimmylin212jimmylin212 Posts: 2Questions: 1Answers: 0

    I found that it's because the CSS. I change the css, it works well.

This discussion has been closed.