Topic: MDBDatatable with Selectable Rows and Search - Select-UnSelect functionality.
I have MDBDataable
implemeted which is using @selected-rows="setSelectedParticipants"
for selecting the appropriate items from the table.
Everything is working fine such as:
- Selecting All Items
- Unselecting all items
- Selecting single/multiple items
- Unselecting single/multiple items
Now here comes the issue. When I am searching for an entry and then selecting my list is getting updated just fine. But the same doesn't work when I try to search an item and then unselect it. My list doesn't reflect that.
My Question: Is there any event being emitted which will allow me to capture the uncheck event and process the unchecked item so that I can update my list ?
Bartosz Cylwik staff answered 2 years ago
Hello! Yes there seem to be an issue with the selected-rows
emit when the data rows are beeing filtered by search. Unfortunatelly I don't think there is any other event that could help. row-click
is firing on row click, but it do not react on checkbox click.
Sorry for that. I have added this to our to-fix list.
Best Regards!
Riva pro premium priority commented 2 years ago
I would also like to mention that while searching the previously selected items disappear from the array that hold the selections (not user defined). Thats why it's difficult to update the user defined selection array based on the new selection array.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Vue
- MDB Version: MDB5 3.2.0
- Device: Windows
- Browser: All
- OS: Windows 11 Pro
- Provided sample code: No
- Provided link: No