Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation]: Update docs to include select/deselect behaviour for Details List #395

Open
manuelap-msft opened this issue Sep 5, 2023 · 1 comment
Assignees
Labels
Component: DetailsList documentation Improvements or additions to documentation

Comments

@manuelap-msft
Copy link

manuelap-msft commented Sep 5, 2023

**Is this request for a new component, or additional functionality for an existing component? **
Existing component, DetailsList

Have you validated that your desired feature or component is not already in the backlog?
Yes

Describe the component and functionality you would like to see in the starter kit
Could the Details List documentation be updated with an example of how to handle de-select events on a DetailsList (e.g. on select add something to a collection, on remove remove something from a collection).
Both Paging as well as Search on the DetailsList clears the components SelectedItems so quite often you need to maintain what's been selected in a collection, and an example of how to do that would be great to have in the documentation.

Describe alternatives you've considered
Trying to figure it out through trial and error.

@sperry1625
Copy link

In addition, selections in general. I have a column in my collection, IsSelected, to have the ability to programmatically select a row. But I would like to update that column to reflect a change by the user, if they select a new row. The problem is when I try and update the underlying collection based on what the user selected, it causes the OnRowSelectionChange to get called over and over and then the list, even though a row is selected, the List.Selection property is Blank(). So now I have no isea what is selected.

@denise-msft denise-msft added documentation Improvements or additions to documentation Component: DetailsList labels Sep 21, 2023
@RajeevPentyala RajeevPentyala added this to the Backlog milestone Nov 17, 2023
@denise-msft denise-msft self-assigned this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DetailsList documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants