Topic: Remove row automatically from data Table using checkbox and delete button
rashesh patel asked 6 years ago
Hi, I am using MDB Data Table with checkbox in each item and saved list data in this.state.data,while deleting any of item using checkbox and splice data from this.state.data I am getting updated data in this.state.data (Data also remove from database) but that row didn't remove automatically from the table.If I am refreshing the page that row will remove automatically.
What should I do to remove row automatically from data table without refreshing the page??
Jakub Mandra staff premium answered 6 years ago
Hi,
Thanks for reporting.
Looks like there is a bug in the inner structure of the dataTable. It is updating it's main inner state, but child - table - does not.
We will investigate the problem and do additional fixes, then head back to you.
Best,
Jakub
rashesh patel commented 6 years ago
Ok, Thank you Jakub.
rashesh patel commented 6 years ago
Hi Jakub, Any Update??
Jakub Mandra staff premium commented 6 years ago
Hi,
We are planning to work on DataTables search component and overall DataTables (it will have more flexible search methods etc) in next iteration. So we will handle your request as well.
Please stay tuned.
Best,
jakub
rashesh patel commented 5 years ago
Hi Jakub,
Any Update????
Aliaksandr Andrasiuk staff commented 5 years ago
Hi Rashesh Patel,
Work on this is underway.
Can you show your code snippet?
rashesh patel commented 5 years ago
Hi Aliaksandr
I have already share it to you in github :)
Aliaksandr Andrasiuk staff commented 5 years ago
Do you still have the same problem using mdbreact v.4.17.0?
rashesh patel commented 5 years ago
Hi Aliaksandr,
Now its working.... but after deleting particular row, the check box of the next row is automatically selected itself!!!
Aliaksandr Andrasiuk staff commented 5 years ago
Hi,
Can you show the implementation of the method you use to delete rows?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.11.1
- Device: LAPTOP
- Browser: CHROME
- OS: WINDOWS 10
- Provided sample code: No
- Provided link: No