dynamic change in filter

dynamic change in filter

poojaupoojau Posts: 1Questions: 1Answers: 0
edited December 2014 in Free community support

Hi, I wanted to change the dropdown for filter dynamically. any help. my code is like this
$.each(oSettings.aoColumns,function(index,value){

                        var classString = (value.sClass).toString();

                        if(classString.indexOf("categoryDescription") >= 0 || classString.indexOf("erpId") >= 0)
                            {
                                oSettings.aoColumns[index].bVisible = false;
                                oSettings.aoColumns[index].bSearchable = false;
                                oSettings.aoColumns[index].bSortable = false;
                                oSettings.aoColumns[index].nTh.hidden = true;

$(".dev_dataTableFilter").find("option").filter("value['5']").hide();
}
});
But it doesn't work

This discussion has been closed.