I have a datatable in which I added several checkbox columns. I want to be able to sort my columns according to the values of the checkboxes (checked or not). I tested a lot of different things and found one portion of code which seems to work, but sadly does not. That’s the solution proposed here : R/Shiny – Scrollable datatable with checkboxes and total count.
What I observed is that when you arrive on the app and you check the boxes then filter there is no problem. But if you try to update then the checkboxes it keeps the sorting from before.
Example of problem with checkboxes
Any solution to that?
Thank you very much!
Antoine Moniot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.