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

[docs] Add a recipe for combining checkbox selection and row grouping #13856

Closed
wants to merge 2 commits into from

Conversation

michelengelen
Copy link
Member

This adds a recipe for smart selection of grouped rows with checkbox selection

related issue #4248

@michelengelen michelengelen added docs Improvements or additions to the documentation component: data grid This is the name of the generic UI component, not the React module! feature: Selection Related to the data grid Selection feature feature: Row grouping Related to the data grid Row grouping feature recipe labels Jul 16, 2024
@michelengelen michelengelen self-assigned this Jul 16, 2024
@mui-bot
Copy link

mui-bot commented Jul 16, 2024

apiRef.current.instanceId,
).filter((id) => !id.toString().includes('auto-generated'));

const selectionLookup = selectedIdsLookupSelector(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use useGridSelector here and do not recompute all of this on every render?
For large dataset we seem to have a potential bottleneck.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed that we do have a PR open for the parent/chilren selection feature: #13757 ... This would probably make this recipe obsolete ... 🤷🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation feature: Row grouping Related to the data grid Row grouping feature feature: Selection Related to the data grid Selection feature recipe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants