How to filter datatable with value add with jquery

How to filter datatable with value add with jquery

Dev75Dev75 Posts: 5Questions: 2Answers: 0

Hello,

I m using Datatable and i trying to filter value on my last td colomun on text Red or white value..
When i clicked on arrow's filter nothing is happening (no filter action)..
Do you know why?

$('#sst-table-all-contracts').DataTable
({
'createdRow': function (row, data) {
$(row).find("td:eq(1)").attr("id", data[6]);

                            if (data[7] == null )
                            {
                                $(row).find('td:last').css("background", "white");
                                $(row).find('td:last').text("white");
                                $(row).find('td:last').css("color", "white");

                            }
                            else {

                                $(row).find('td:last').css("background", "red");
                                $(row).find('td:last').text("red");
                                $(row).find('td:last').css("color", "red");

                            }

                            },
                        "aaData": contractsList,
                        "aoColumns": [ {}, {}]

                              });

Answers

This discussion has been closed.