I recently ran into an issue with the .Selected property resetting for the Modern Table component. After some troubleshooting I've been able to narrow down the cause of this issue, but no solution yet.
After consulting with Microsoft support they told me to make a post here, since the modern component development is handled through the forums (?!?).
Problem:
The Table.Selected property will break when the user has sorting enabled and then refreshes the source. This happens when updating the source using a form, but also when using Refresh(source).
How to recreate:
1. Modern Table with SharePoint as source (170 rows in my case)
2. Sort by ID descending.
3. Select one of the last records (e.a. 168)
4. Refresh data source of the table
5. Click record Result: Tabel.Selected will be Blank
Impact:
The intuitive Modern Table becomes unuseable for datasources which require a combination of sorting and updating
I mean built in sorting like the modern tables have, where you can click the columns to sort.
I'm aware you can sort the datasource using sorting formula's, but the modern table does not need this.
what do you mean? you can show items in a gallery and sort/filter there also
Classic control does not have sorting functionality.
hey @LVerhVRE
have u tried it if it work with classic controls? My suggestion until now is, not to use modern controls cause many of them are still in preview and can be buggy at times.
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings