How to filter datatable base on checked checkbox column

How to filter datatable base on checked checkbox column

arshadaliarshadali Posts: 1Questions: 1Answers: 0

Hi,

I am new to datatable and I want to filter the rows of datatable based on checkbox. I want to show only selected rows when an external button is clicked. I have attached snapshot. I have created datatable like this:

        data_tbl =  $("#select_material_tbl").DataTable({
        paging: false,
        searching: false,
        "info" : false,
        "AutoWidth": true,
        data: dummyData,
        columns:[
            {       
                "title":"Select",
                data:   "name",
                render: function ( data, type, row ) {
                    return '<input type="checkbox" class="editor-active">';
                },
                className: "dt-body-center",
                "width":"10%",
                "visible": true
            },
            { "title": "Name","name": "name", "data": "name"},
            { "title": "Details","name": "details", "data": "details"}
        ]      
    });

Please help me to achieve this? Thanks

This discussion has been closed.