How to combine Autocomplete and filter search on yadcf Datatable?

时间:2017-06-09 12:53:42

标签: autocomplete datatables yadcf

I need to combine on input search two filter type : "Autocomplete" and "text".

See this example : http://yadcf-showcase.appspot.com/ajax_source.html.

I need the fonctionnality of the input of the second Column (Browser) and the column Platform.

It is possible?

Thank you.

1 个答案:

答案 0 :(得分:0)

yadcf不是为这种情况设计的,但你尝试使用不同的过滤器类型初始化yadcf(通过按下一些专用按钮 - 但我还没有自己测试过

//at start - call this code
yadcf.init(oTable2, [{
    column_number: 0
    filter_type: "text",
}]);


//then, when clicking on "filter toggle button" - call this code
yadcf.init(oTable2, [{
    column_number: 0
    filter_type: "auto_complete",
}]);