Topic: Datatables: add method to retrieve list of selected rows
Expected behavior I think it would be useful to have a method that retrieves the list of selected rows from an mdb Datatable.
Actual behavior
the list of selected rows is only available in the selectRows.mdb.datatable
event details, but there are a lot of use cases in which the user selects some rows, then clicks a button to perform an action on the selected rows.
Currently the only way to implement this very common use case is to create an event handler that updates a global variable, setting it to event.selectedRows
every time the event is fired, and then access the global variable when it is time to act on the selected rows.
Resources (screenshots, code snippets etc.)
kpienkowska staff answered 2 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Standard
- MDB Version: -
- Device:
- Browser:
- OS:
- Provided sample code: No
- Provided link: No