column-filter with regular expression not working
column-filter with regular expression not working
![naggappan](https://secure.gravatar.com/avatar/c35e33b26e394ff01a1cfbf7b9d47024/?default=https%3A%2F%2Fvanillicon.com%2Fc35e33b26e394ff01a1cfbf7b9d47024_200.png&rating=g&size=120)
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.