Skip to content

[data grid] Please add edit example for treedata #15420

Open
@entaildevops

Description

@entaildevops

Related page

https://mui.com/x/react-data-grid/tree-data/

Kind of issue

Missing information

Issue description

It is currently quite unclear how row editing should be accomplished properly with treedata. If you the full featured crud example is modified to use treedata, the editing works - BUT: every edit causes the row to collapse, which is very bad UX. The collapsing occurs because the example uses processRowUpdate to handle updates. As stated here apiref.current.updateRows() would not cause this. But with a lack of example, it is a bit hard to get grasp on how to do it.

The Full example of treedata should have example also on how to properly edit the rows with decent UX when treedata is present.

Context

No response

Search keywords: treedata

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: data gridThis is the name of the generic UI component, not the React module!feature: EditingRelated to the data grid Editing featurefeature: Tree dataRelated to the data grid Tree data featurerecipesupport: docs-feedbackFeedback from documentation page

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions