+ Start a Discussion
Philip BonthaPhilip Bontha 

How to make the checkbox as true on next and preview buttons on lightning datatable.

Hi All,
I have a requirement where i need to keep the checkbox as true on next and preview buttons.
I have two tabs and on one tab i am displaying account data and other tab I am dispalying related contact data.If i check the checkbox on first tab and then related contacts i have to display on second tab and there i can select mulitple records.If i come back to previous tab the first selected records become the unchecked.

My requirement is on moving between tabs need to keep the same as previous selection.That means the checkbox remains keep it as true.But as per the current functionality it becames false.

Please help me on this.

Thanks in advance
PriyaPriya (Salesforce Developers) 
The developer community recommends providing any attempts/code you've started, any errors you're getting, or where exactly you're struggling in achieving this while posting a question.