Comments (5)
No problem, we'll keep this issue open to find a proper fix 👍
from mui-x.
Interesting... that's probably a bug.
But you can easily solve it by always passing the getTreeDataPath
, it will just be ignored when treeData === false
.
And by the way, you should always memoize getTreeDataPath
to avoid re-generating the tree on every render.
from mui-x.
Hi flaviendelangle! Thanks for replying! Yeah, agree about memoizing but it was just for simplifying code for an example. I have my getTreeDataPath outside the component.
If it is a bug, I hope this will be fixed soon. We need this functionality so much.
For now if I switch from Tree Data to simple Grid I'm hiding Group column and disable it in manage column menu, creating fake path for rows, but it takes much efforts for development and automation teams to support all this logic since functionality of Data Grid is overcomplicated and without it
from mui-x.
Is there something preventing you from just always passing getTreeDataPath
to your grid?
from mui-x.
Previously I received an error when I tried to do in the project. But I used your suggestion and look at it in the different perspective. I cleaned up all the rows while clicking before changing treeData to true and then generated new rows with path and it worked! no Group column in grid and no error!!! https://codesandbox.io/s/data-grid-community-forked-vyktlt?file=/src/App.tsx
Thanks a lot!
from mui-x.
Related Issues (20)
- [core] @mui/x-date-pickers has a peer dependency on both material and system HOT 5
- [data grid] Add Data grid support for Joy UI
- [charts] Add Charts support for Joy UI
- [joy-ui] Support all components HOT 1
- [tree-view] Add Tree view support for Joy UI
- [base-ui] Support all components (unstyled)
- [charts] Base UI support, component API
- [pickers] Base UI support, component API
- [tree view] Base UI support, component API
- [data grid] Minor issues with row reordering when `disableColumnReorder` is true HOT 6
- [charts] Allow to adjust pie chart label positon (radius) HOT 5
- Infinite resize loop while scrolling when datagrid only has pinned columns HOT 3
- `renderContext` is changing in unexpected clicks- with RTL HOT 2
- [DataGrid] Removal of gridEditRowsStateSelector downgrades usability HOT 2
- [Backport fix request]Resizing column to a smaller size triggers sorting with the on mouse up event HOT 3
- [charts] It's not possible to import `DefaultChartsAxisContent` HOT 3
- unstable_headerFilters with DataGridPremium HOT 1
- Rename the `dayPickerClasses` variable `dayCalendarClasses`
- [DataGrid] Horizontal Scrolling: Dual Scrollbars for Enhanced Table Navigation HOT 2
- TableSortLabel keeps reloading the page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.