Replace search field with dropdown

Replace search field with dropdown

ministrypixelministrypixel Posts: 12Questions: 0Answers: 0
edited December 2011 in General
Is it possible to replace the search field that filters data with a select dropdown? This way whatever value is selected, datatables is instantly filtered. Please help. Thank you!

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Sure its possible :-). The code to do it however, to the best of my knowledge, hasn't been written yet. The best way of doing this would be to create a feature plug-in for DataTables ( http://datatables.net/blog/Creating_feature_plug-ins ) that will put the select in place, and then just use fnFilter to filter the table (a bit like this example: http://datatables.net/release-datatables/examples/api/multi_filter_select.html ).

    Allan
This discussion has been closed.