How to add suggestive search in datatable?
How to add suggestive search in datatable?
We have a large dataset to search and also on more than one column. Current implementation using datatable plugin I am able to filter records but search text box does not provide any suggestions. e.g. If I type Application in search box, it provide me options to select search strings like ".... Application Support .... ", "... Application Development ....." etc.
Is it possible to implement above mentioned feature? Appreciate your help.
This question has accepted answers - jump to:
Answers
There might be a third party filter plugin that will do that, but if not, you could build up the filter yourself. You can use the API to get a list of values for the column, and you could then build up a jQuery UI AutoComplete.
you can use my yadcf plugin for datatables , one of its 9 different filter types is autocomplete filter see fourth column in the following showcase page http://yadcf-showcase.appspot.com/DOM_source.html (it uses jQuery UI AutoComplete under the hood, so you must include it in your html too)
Thanks John and Daniel ... your responses really helped me solving this problem.