mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.34k stars 1.3k forks source link

[data grid] Auto-expand group row on column filter #11906

Open sydneyjodon-wk opened 9 months ago

sydneyjodon-wk commented 9 months ago

Summary

Hello! 👋 This is similar to https://github.com/mui/mui-x/issues/6812, but would it be possible to also have group rows auto-expand if a column filter is applied that impacts the children?

Example / Motivation

For example, if a column filter applies to the children, but not to the parent, it is kind of confusing if only the parent is visible - it would be nice if it would expand to show the children that were part of the filter:

(using example from tree data docs)

filter-children

Thank you!

Search keywords: auto expand, tree data filter, expand children Order ID: 82849

michelengelen commented 9 months ago

Thanks for raising this @sydneyjodon-wk ... I am going to put this into the board for the team to look at, since this is a feature request (or enhancement at the very least).