Filter a parent table from a preferences table.
Filter a parent table from a preferences table.
JanNL_FR
Posts: 47Questions: 15Answers: 2
Link to test case: https://campcare.eu/Drill/users.html and https://campcare.eu/Drill/index.html
I want a user to be able to add frequently used preferences to their user account to select a filter that will filter the parent table.
What is the best way to achieve this?
Replies
You can use state saving. By default it also saves entries into the search field. So the table will be filtered when the user opens the page again.
That is the simplest way. I also use predefined column search with buttons. Also works fine.
https://datatables.net/reference/option/stateSave
https://datatables.net/reference/api/column().search()
Here is an example for predefined column search with buttons:
I used the parent child examples and got it working.
saveState is also a nice to have option. Thanks rf1234
Jan