Skip to content

[data grid][question] Tree Data: How to switch between tree data and ordinary grid without tree data #10251

Open
@Ol-Boiko

Description

@Ol-Boiko

Order ID or Support key 💳 (optional)

The problem in depth 🔍

I want to have possibility to switch between ordinary grid and grid with Tree data like in this example:
https://codesandbox.io/s/data-grid-community-forked-yqx6v2?file=/src/App.tsx

if i click to the button "switch Tree"- i'll receive an error "MUI: No getTreeDataPath given."

Thanks in advance

Your environment 🌎

`npx @mui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something doesn't workcomponent: data gridThis is the name of the generic UI component, not the React module!feature: Tree dataRelated to the data grid Tree data featuresupport: questionCommunity support but can be turned into an improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions