Filter on column which contains dropdown
Filter on column which contains dropdown
Kets
Posts: 1Questions: 1Answers: 0
I want to add filter on column which contains dropdown of some predefined values. The filter should show only those rows in which the filter text in selected in the respective dropdown for row.
Is this possible? How can I achieve it?
This discussion has been closed.
Answers
I don't have the time right now to flesh out an answer, my initial thought is perhaps there's a solution involving filtering on a hidden column that contains the value of the select menu? Or possibly formatting the cell into the html select input after filtering has already occurred (or even format it/add html on row selection.. so it starts as plain text, but if they highlight a row it has a dropdown to update value)?
Try this:
https://datatables.net/examples/api/multi_filter_select.html