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 a method to get all the real rows of a group created with row grouping #4270

Closed
2 tasks done
Tracked by #2994
flaviendelangle opened this issue Mar 24, 2022 · 0 comments · Fixed by #4304
Closed
2 tasks done
Tracked by #2994
Labels
feature: Row grouping Related to the data grid Row grouping feature new feature New feature or request plan: Premium Impact at least one Premium user

Comments

@flaviendelangle
Copy link
Member

flaviendelangle commented Mar 24, 2022

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

See #4248 (comment)

Getting all the real rows (without auto-generated ones) of a group seems to be a common use case that we should make as easy as possible.

I think the method should be specific to the Row Grouping trees, because tree created with the Tree Data do not have the same needs.

It could look something like:

interface GroupingCriteriaRowGetter {
  applyFiltering?: boolean;
  applySorting?: boolean;
}

interface GridRowGroupingApi {
  // ... other methods
  getGroupingCriteriaRows: (params: GroupingCriteriaRowGetter) => GridRowEntrie[]
}

Examples 🌈

No response

Motivation 🔦

No response

Order ID 💳 (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: Row grouping Related to the data grid Row grouping feature new feature New feature or request plan: Premium Impact at least one Premium user
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant