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

[data grid] Add "Expand/Collapse All" functionality for tree data #14137

Open
mahammahmood opened this issue Aug 8, 2024 · 7 comments
Open
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Tree data Related to the data grid Tree data feature new feature New feature or request support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@mahammahmood
Copy link

mahammahmood commented Aug 8, 2024

Summary

I know that you are working on Tree Data Selection. I would like you to consider adding a feature to select or unselect all the checkboxes and to expand and collapse all the nodes as well. Could you please give me the tentative date for the launch of the Tree Data Selection feature?

Examples

Here is the example
https://codesandbox.io/p/sandbox/goofy-beaver-dscr3c

select and expand

Motivation

No response

Search keywords: Data ,Grid , Premium, Tree, data, Select All, Expand All, Collapse All
Order ID: 91010

@mahammahmood mahammahmood added new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 8, 2024
@github-actions github-actions bot added the support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ label Aug 8, 2024
@michelengelen
Copy link
Member

Hey @mahammahmood ... the selection feature is actively worked on atm. #13757
As soon as the PR gets merged you can expect the feature to land in the next release.

As for the expansion feature we can add this to the board for now to open up the discussion on implementation details. 👍🏼

@michelengelen michelengelen added component: data grid This is the name of the generic UI component, not the React module! feature: Tree data Related to the data grid Tree data feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 8, 2024
@michelengelen michelengelen changed the title I want a Select All, Expand & Collapse All Functionality in Tree Data [data grid] Add "Expand/Collapse All" functionality for tree data Aug 8, 2024
@github-project-automation github-project-automation bot moved this to 🆕 Needs refinement in MUI X Data Grid Aug 8, 2024
@genepaul
Copy link
Contributor

genepaul commented Aug 8, 2024

I am also interested in this functionality. I tried doing something on my own but was unable to get something that was performant with a lot of rows. I had commented here but never received a response on whether I was doing something wrong. I'd be very interested in how this could work as part of the grid.

@mahammahmood
Copy link
Author

Is this functionality implemented by MUI?

@michelengelen
Copy link
Member

yes, it is ... it's apparently a bit harder than originally thought, so the PR got not merged yet ... but we are working on it!

@michelengelen michelengelen linked a pull request Sep 4, 2024 that will close this issue
11 tasks
@mahammahmood
Copy link
Author

Thanks for the update! Do you have an estimated time for when it will be completed?

@michelengelen
Copy link
Member

no, not that i know of ... @MBilalShafi could give a bit more insight if needed

@MBilalShafi
Copy link
Member

I added a solution in the userland that could be utilized until a built-in solution is available: #8505 (comment)

@mahammahmood @genepaul Could you check if it makes sense for you?

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! feature: Tree data Related to the data grid Tree data feature new feature New feature or request support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Projects
Status: 🆕 Needs refinement
Development

No branches or pull requests

4 participants