Filtering a column containing CheckBoxes

Filtering a column containing CheckBoxes

diordonezdiordonez Posts: 2Questions: 2Answers: 0
edited March 2016 in Free community support

Hi all.
First of all, needless to say that DataTables is a fantastic product very easy to implement even for non expert web programmers like myself.
I'm using JQuery on an ASP.NET MVC application and it works very well.

My question is that sorting by a column with checkboxes does not work.

Second, I need to implement a filter to exclude disabled users from the table. How can I filter using the column that has checkboxes ?

what should I put inside the search argument for the column 4 ?

   var theDataTableObj = $('#tableSmUsers').DataTable();

    $('#ShowDisabledUsers').change(function () {
        if (this.checked) {
            theDataTableObj.columns(4).search('??????????????').draw();
        }
    });

http://postimg.org/image/71gbvug1n/
http://postimg.org/image/j0fntm4of/

Answers

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67

    You might find my answer on SO usefull, it involves using my yadcf plugin

This discussion has been closed.