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

Lightning DataTable
Hi,
I am updating the datatable rows in lightning by selecting the selectedRows() .
when I am reloading the datatable the check box, SELECTION is still checked.
How do I get the selection to be false.
Thanks
I am updating the datatable rows in lightning by selecting the selectedRows() .
when I am reloading the datatable the check box, SELECTION is still checked.
How do I get the selection to be false.
Thanks
Greetings to you!
Please refer to the below links which might help you further with the above requirement.
https://salesforce.stackexchange.com/questions/200436/lightningdatatable-clear-row-selections
https://salesforce.stackexchange.com/questions/215039/lightningdatatable-deselect-rows
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
I tried all the methods mentioned in both the links but no success.
Still trying to find the answer.
if there is any more information you can provide it will be appreciated.
Thanks
var deselect = [ ];
component.set("v.selectedRows", deselect);
Thanks
You can find ready to use lightning data table component example here: https://newstechnologystuff.com/2019/01/01/lightning-datatable-lazy-loading-with-inline-editing-and-actions/