Datatable does not refresh and single value cannot be select


Topic: Datatable does not refresh and single value cannot be selected from the table

jaletechs asked 5 years ago

Is there a way to select an item from a datatable for use on say a dialog box or to navigate to another page? It is a little worrying that mdb datatables do not automatically refresh when the json array changes, and it is not designed in such a way that i can select a particular item in the list, from the table and do something with it in a method. How do I proceed with this?


Magdalena Dembna staff premium answered 5 years ago

As for editing rows, we have a separate component for this - mdbEditable but it may not be exactly what you are looking for. I'm afraid I need to admit that rows in the ordinary datatables are not selectable. I will be happy to add your insight to our idea board and discuss improving this component in the future. In the meantime, if you shared a code snippet I would try to figure out an issue with non-reactive data. Kind regards, Magdalena


jaletechs commented 5 years ago

I have seen mdbEditable, it is very far from what I need. There are a lot of amazing components and plugins in mdbootstrap, but I am a little disappointed that pretty basic stuff like this got away from the team. As it is, this might force me to reconsider the entire library or seek an alternative for at least the table. Reactive data, selecting rows to perform certain actions on the underlying object... that's basic stuff a table should have without even thinking about it. I can't think of a single UI library that doesn't have these locked down already. I guess I'll have to do what I can with what I've got.


Magdalena Dembna staff premium commented 5 years ago

Thank you for this opinion, we will try to improve it in the future. I was asking to see a code snippet because as I remember we do watch for changes in data in our component and I am a little suprised it doesn't work as it supposed to do. If there is a bug, it would be very helpful to study your case. Kind regards, Magdalena


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: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 5.8.0
  • Device: MacBook Pro
  • Browser: FireFox
  • OS: Mac OSX
  • Provided sample code: No
  • Provided link: No