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] How can I edit the header name of a specific row and clone that row in MUI DataGrid with tree data? #15254

Closed
mahammahmood opened this issue Nov 4, 2024 · 1 comment
Labels
feature: Tree data Related to the data grid Tree data feature support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ support: Stack Overflow Please ask the community on Stack Overflow

Comments

@mahammahmood
Copy link

mahammahmood commented Nov 4, 2024

The problem in depth

  1. I'm using MUI's DataGrid with tree data to display an itinerary structure. I want to make each itinerary name editable, including for dynamically added itineraries. How can I implement inline editing for node names within the tree data in the DataGrid? Are there any best practices or examples for making tree data cells editable in this way? Additionally, how can I ensure changes are reflected correctly within the nested structure of the grid?

Screenshot 2024-11-04 122626

  1. In my MUI DataGrid with tree data, I want to add a 'Clone' functionality that allows users to duplicate an itinerary (including newly added ones). What would be the best way to implement a cloning feature in a tree structure within DataGrid? How can I handle nested data when duplicating nodes to ensure the cloned itinerary has the same structure and data as the original? Any examples or recommendations would be helpful.

Here is the example
https://stackblitz.com/edit/react-sj2kwa?file=customGridTreeDataGroupingCell.tsx,Demo.tsx

Your environment

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

Search keywords: Data, Grid, Premium, Tree, Data, editable, row, clone
Order ID: 91010

@mahammahmood mahammahmood added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Nov 4, 2024
@github-actions github-actions bot added the support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ label Nov 4, 2024
@michelengelen michelengelen added support: Stack Overflow Please ask the community on Stack Overflow and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 4, 2024
@michelengelen michelengelen changed the title How can I edit the header name of a specific row and clone that row in MUI DataGrid with tree data? [data grid] How can I edit the header name of a specific row and clone that row in MUI DataGrid with tree data? Nov 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

👋 Thanks for using this project!

We use GitHub issues as a bug and feature requests tracker, however, this issue appears to be a support request.

For support with MUI X please check out https://mui.com/x/introduction/support/. Thanks!

If you have a question on Stack Overflow, you are welcome to link to it here, it might help others.
If your issue is subsequently confirmed as a bug, and the report follows the issue template, it can be reopened.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2024
@michelengelen michelengelen added the feature: Tree data Related to the data grid Tree data feature label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: Tree data Related to the data grid Tree data feature support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ support: Stack Overflow Please ask the community on Stack Overflow
Projects
None yet
Development

No branches or pull requests

2 participants