[BUG]: RecordSelected Not Honored in DetailList
Describe the bug
If a collection contains a column to indicate a row is selected, ex. IsSelected, when the grid is displayed, the records with IsSelected set to true are not selected in the detail list.
To Reproduce Steps to reproduce the behavior:
- Create a collection of records with a Boolean column of
IsSelected. - Make at least one record where
IsSelectedis true - Add a DetailList to a screen
- Assign the Items property as the collection created above
- Set the
RecordSelectedproperty to the boolean column to use for selection."IsSelected" - DetailList displays collection records but no records are selected
Expected behavior
To display the records in the collection with the records with column IsSelected set to true to be selected in the list.
Screenshots N/A
Additional context
I tried creating an InputEvent for SetFocusOnRowSetSelection and SetSelection. None of these worked.
This should work for selecting a record and clearing all selections and it does not.
AB#957
Hi @sperry1625
After thorough testing, we couldn’t replicate the problem. Please ensure that you are using the latest version, or try the following steps to set the row selection by default
https://learn.microsoft.com/en-us/power-platform/guidance/creator-kit/detailslist#set-row-selection
Sample query which I used to test.
Also please note that you need to add the RecordSelected field to the Fields for the control.