column-filter with regular expression not working
column-filter with regular expression not working
naggappan
Posts: 2Questions: 2Answers: 0
i use custom column-filter and it works fine and one problem is if i select "MS" from drop down it filters "MSC","MSABC" etc. Hence i tried regular express code as follows,
$(document).ready(function(){ $('#Emp_table').dataTable() .columnFilter({ "oSearch": {"bSmart": false}, "bAutoWidth": false, aoColumns: [ {type: "text"}, { type: "text" }, { type: "select" }, { type: "select" }, { type: "select" }, { type: "select", bRegex:true, values:[ { value: '^MS$', label: 'MS'} ] }, { type: "select" } ] }); });But if i use bRegex:true then filtering itself not working for that column. I even tried bSmart:false . But nothing is working out.
This discussion has been closed.