You need to sign in to do that
Don't have an account?

How can Lightning:datatable keep track of deselected checkboxes?
I'm trying to use the lightning:datatable component, but there doesn't seem to be a way to keep track of deselected checkboxes. My current implementation uses a drop down, that allows users to upate the data in the data table based on the user selected from the drop down.
I want to keep track of all selected rows, but there doesn't seem to be a way to remove un-selected rows.
Any ideas on how these can be done, docs really don't say anything about how to keep track of anyhting except what's selected?
I want to keep track of all selected rows, but there doesn't seem to be a way to remove un-selected rows.
Any ideas on how these can be done, docs really don't say anything about how to keep track of anyhting except what's selected?
Sorry for this issue you are encountering.
May I suggest you please check with below link from the stack exchange community which might help.
- https://salesforce.stackexchange.com/questions/202046/can-we-manipulate-row-selections-in-lightningdatatable
Please let us know if this helps.Thanks,
Nagendra