Topic: De-select datatable rows via API

chrislennon priority asked 1 year ago

I need to programmatically de-select one or more selected rows in MDB Datatables

How can I do this as there doesn't seem to be any API method to do this?

Mateusz Lazaru staff answered 1 year 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.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • 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