Implement external dropdown filter with datatables
Implement external dropdown filter with datatables
abkakadiya91
Posts: 1Questions: 1Answers: 0
hi,
I want to use datatable because it comes with so many features.
My requirement is ,I have one dorpdown list and on selected index change i want to filter data of datatable .Data is filtered but pagging not maintain .I don't need filter on any specific column .i want filter on whole table .Please help asps because i stuck thire from last 2 days.
Please let me if this is possible. If yes, then what code changes I need to implement.
Thanks,
This discussion has been closed.
Answers
There are two options:
1. https://datatables.net/reference/api/columns().search(), leaving columns blank will search all columns
2. Using this plugin, https://github.com/vedmack/yadcf, and this example, http://yadcf-showcase.appspot.com/dom_source_externally_triggered.html.