Topic: How can I dynamically add/update/delete rows to mdb.Datatable using JavaScript?

ThommyS free asked 2 years ago

Expected behavior Use in JavaScript something like: mdb.Datatable.add(row), mdb.Datatable.udpate(row) and mdb.Datatable.delete(row)

Actual behavior Does not exist (update method?)

Resources (screenshots, code snippets etc.)

Michał Duszak staff answered 2 years ago


the Datatable component uses .update() method which allows you to rerender Datatable with new data.

Here's an example where I push new row to the data object, and then update the instance.

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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.8.1
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No