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

DataGrid Grouping - Flag for Expand Groups by default #5747

Open
DaveAPerry opened this issue Sep 24, 2024 · 3 comments
Open

DataGrid Grouping - Flag for Expand Groups by default #5747

DaveAPerry opened this issue Sep 24, 2024 · 3 comments
Assignees
Labels
Type: Feature ⚙ Request or idea for a new feature.

Comments

@DaveAPerry
Copy link

I'm working on a report and want to make use of the grouping feature of the DataGrid to split out different sections in the report. When the user navigates to the page I want all the sections expanded by default and allow them to collapse the groups they aren't interested in.

Describe the solution you'd like
I think a parameter on the DataGrid for "GroupCollapse" (or something like that) that could be set to Collapse or Expand to configure the default state.

@DaveAPerry DaveAPerry added the Type: Feature ⚙ Request or idea for a new feature. label Sep 24, 2024
@David-Moreira
Copy link
Contributor

Hello @DaveAPerry
While a flag might be helpful we do have a programatic way of triggering the expand/collapse operations.
Have you tried the ExpandAllGroups? When called at the appropriate time it should do as you ask.

@DaveAPerry
Copy link
Author

@David-Moreira Yes, I have tried using Expand all groups, and it does work if I can get it to run at the proper time - I can get it to run on the initial render well enough - I need to put some more time in to get it to work properly when the component is rerendered (ie. Switching between blazorise tabs).

It's more of a nice to have idea than a need to have idea.

@DaveAPerry
Copy link
Author

I was able to get it working - you can close this issue if you want.

Again, it's a nice to have not a need to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature ⚙ Request or idea for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants