Datatables: add method to retrieve list of selected rows


Topic: Datatables: add method to retrieve list of selected rows

Torroni pro asked 2 years ago

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

Thank you for the idea we will discuss this with our team.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: -
  • Device:
  • Browser:
  • OS:
  • Provided sample code: No
  • Provided link: No
Tags