dynamic change in filter
dynamic change in filter
poojau
Posts: 1Questions: 1Answers: 0
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.