Skip to content

[data grid] TreeData: allow customizing the rows selected by filtering #10024

Open
@atlanteh

Description

@atlanteh

Order ID or Support key 💳 (optional)

56081

The problem in depth 🔍

When using DataGrid in treeData mode, I'm using the filter model, but the rows that are showing are only the filtered row and the parents of that row. Is there a way to also show all the children of that row?
A granular control might be even better because I can also think of a scenario where I want to get all the parents that have a child with a specific value, but would like to see also all the siblings of the filtered row as well.
Is this possible today? If not, what are my alternatives?

Your environment 🌎

`npx @mui/envinfo`
  System:
    OS: macOS 12.2
  Binaries:
    Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.0/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm
  Browsers:
    Chrome: 115.0.5790.170
    Edge: Not Found
    Safari: 15.3
  npmPackages:
    @emotion/react: ^11.7.1 => 11.11.1 
    @emotion/styled: ^11.6.0 => 11.11.0 
    @mui/base:  5.0.0-beta.7 
    @mui/core-downloads-tracker:  5.14.0 
    @mui/icons-material: ^5.10.9 => 5.14.0 
    @mui/lab: ^5.0.0-alpha.114 => 5.0.0-alpha.136 
    @mui/material: ^5.10.11 => 5.14.0 
    @mui/private-theming:  5.13.7 
    @mui/styled-engine:  5.13.2 
    @mui/system:  5.14.0 
    @mui/types:  7.2.4 
    @mui/utils:  5.13.7 
    @mui/x-data-grid:  6.11.1 
    @mui/x-data-grid-pro: ^6.11.1 => 6.11.1 
    @mui/x-date-pickers:  6.11.1 
    @mui/x-date-pickers-pro: ^6.11.1 => 6.11.1 
    @mui/x-license-pro:  6.10.0 
    @types/react:  18.2.14 
    react: ^18.2.0 => 18.2.0 
    react-dom: ^18.2.0 => 18.2.0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: data gridThis is the name of the generic UI component, not the React module!feature: Tree dataRelated to the data grid Tree data featureplan: ProImpact at least one Pro usersupport: commercialSupport request from paid users

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions