Column Filtering with Select Dropdowns
Column Filtering with Select Dropdowns
Hey folks, using this example (http://www.datatables.net/examples/api/multi_filter_select.html) I wanted to have a column filter dropdown built based on the data-filter tag in the <td> tag. In the linked test case is there a better way to build the dropdown for the Status column, possibly even adhering to the data-order column for the sorting? It's working as desired right now but seems like a bit too much code to just build the unique select options based on data-filter attribute. Thanks!
Answers
That example link got messed up, here is the page: http://www.datatables.net/examples/api/multi_filter_select.html
Also, on the live example you just need to click the run with JS button in the top right: http://live.datatables.net/tamixov/1/edit?html,js,output