Topic: De-select datatable rows via API
chrislennon pro premium priority asked 2 years ago
I need to programmatically de-select one or more selected rows in MDB Datatables https://mdbootstrap.com/docs/standard/data/datatables/
How can I do this as there doesn't seem to be any API method to do this?
mlazaru staff answered 2 years ago
There is no such build in option or method, but I prepared a workaround solution.
Check out my snippet. I created datatable, selecteded all options, and then manually de-selected all the rows from optionsToDeselect
array.
Note: this code works only for first page of very static datatable.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 4.4.0
- Device: Laptop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: Yes