+ Start a Discussion
Flint LockwoodFlint Lockwood 

Unable to select row after sorting Lightning:Datatable

I am using Lightning:Datatable to display a list of records. I specified "maxRowSelection=1", so the table is display radio buttons instead of checkboxes. I am also using the sort function detailed in the documentation. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_datatable.htm.

If I select a record then sort, the radio buttons are greyed out and I cannot change my selection.
If I sort before I select a record, everything works.

Any idea whats going on here?
Raj VakatiRaj Vakati
Here is my comments 
  • if maxRowSelection=1 data table is showing the radio button instance of checkboxes. Its an expected behavior 
  • If you want to Uncheck, Implement sort function with unchecking the radio button. I dnt see any other options