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] Change a row's hierarchy in Tree Data by dragging a leaf to a different parent node #7774

Open
Tracked by #4821
joserodolfofreitas opened this issue Jan 31, 2023 · 0 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Tree data Related to the data grid Tree data feature new feature New feature or request plan: Premium Impact at least one Premium user

Comments

@joserodolfofreitas
Copy link
Member

joserodolfofreitas commented Jan 31, 2023

Summary

This is a part of a feature set called Advanced drag and drop behaviors spinned off #4821.

The treeDataPath value needs to be updated; following getTreeDataPath, we need a setTreeDataPath that receives the row and the new path array, based on where the row was dropped.

Because getTreeDataPath is optional, and by default, we use the path field, we may additionally need an optional callback onTreeDataPathUpdate.

@joserodolfofreitas joserodolfofreitas changed the title Change a row's hierarchy [data grid] Change a row's hierarchy in Tree Data by dragging a leaf to a different parent node Jan 31, 2023
@joserodolfofreitas joserodolfofreitas added feature: Tree data Related to the data grid Tree data feature new feature New feature or request plan: Premium Impact at least one Premium user labels Jan 31, 2023
@flaviendelangle flaviendelangle added plan: Pro Impact at least one Pro user and removed plan: Premium Impact at least one Premium user labels Jan 31, 2023
@joserodolfofreitas joserodolfofreitas added plan: Premium Impact at least one Premium user and removed plan: Pro Impact at least one Pro user labels Feb 2, 2023
@oliviertassinari oliviertassinari added the component: data grid This is the name of the generic UI component, not the React module! label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Tree data Related to the data grid Tree data feature new feature New feature or request plan: Premium Impact at least one Premium user
Projects
None yet
Development

No branches or pull requests

3 participants