-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[DataGrid] Implement Tree data #210
Comments
Hi! Are there any updates to how this feature is going? I've noticed it's been pushed back a few times now and trying to manually implement this has been fairly difficult. Thanks! |
@teenguyen, you have the |
This comment has been minimized.
This comment has been minimized.
The linked benchmarks focus on child rows / columns |
@matandro Yes, this is pretty much what this feature is about. |
This is the only feature we need to move from using react-table to buying Material-UI X Pro XGrid, so hoping for it to arrive soon! |
@JonasRothmann It's on our roadmap for Q3 2021. Hopefully, we can start working on it next sprint, in two weeks. |
Looking forward to this release! Is it still progressing for a Q3 release? |
I wrote the 1st line of code this afternoon. |
Is there an estimate on release for this feature? |
@bitcoinbullbullbull the current target is Q4. |
I would be interested in feedback from the community. Note that I won't add any new major feature on the Tree Data on this MVP. The goal is to release a first working version and then to enrich on the following version. Here are some of the features I am thinking about adding later on:
EDIT : Keep in mind that the Tree Data is different from #212 which I have also started working on (their is a lot of code shared between the two features) and which should have a first MVP in December if everything goes as planned. |
Is it possible to render the groupingColDef in a different spot than the first column? |
Not currently, what would be your usecase ? |
@flaviendelang Row numbers in the first column and then the grouping column. I think I found a workaround by using the groupingColDef but setting it to hidden and then applying the same CustomGridTreeDataGroupingCell component to one of my static column definitions. Seems to work thoughts?? |
Yes, it will probably be the best workaround at first |
Is there an update on this? Super excited for this feature. |
I believe it will be included in the next release @flaviendelangle? https://github.com/mui-org/material-ui-x/projects/1#card-45122802 |
Yes, it should be released in the coming days 🎉 |
What is the priority for the following feature?
I think this is a very important feature (perhaps the most important one related to tree data). I'm pretty sure that there was a huge effort to release this current version. But, not having a lazy load option makes it very difficult to use in real applications where we usually don't get anything except parents first and then load children on demand. |
It is a very important feature I fully agree on that. In the meatime, we could add two properties to the grid.
It will probably not be sufficient in the long run and we will probably have to break this API in v6 or v7 when addind a clean data fetching layer. |
It would help a lot. I'm using the data grid (pro) but I had to implement the tree in a different way so I could get it working with our API. The properties you mentioned should be enough. |
I created #3377 to centralize discussions on this topic. |
https://codesandbox.io/s/datagridpro-v5-quick-start-forked-ncklk?file=/src/App.tsx It is kind of hacky and the scroll has some issues |
We've just started to use the tree data view. My biggest concern is the one you mension about forgetting the expanded rows whenever there is a change in a row's data (e.g. click the "view in map" button in the list below). Filtering and sorting does not affect the expansion, it seems. |
Not sure to understand that one. I would have liked to merge #3277 before working on non trivial stuff on the tree structure to avoid incompatibilities. |
I meant that the expanded rows are kept during both filtering and sorting (which is good :) ). |
Basically the current workflow is
I have several fixes in mind. A "simple" one would be that the tree generator take the previous tree and expand a row if the previous tree had an expanded row with the same ID. A "complex" one would be to avoid regenerating the whole tree. It will be important at some point to handle lazy loading / partial filtering and sorting etc... |
hi @cherniavskii @MBilalShafi , is it possible to achieve below use case in Tree Data Grid.
|
Hi, I'm not working on the data grid anymore, maybe @cherniavskii or @MBilalShafi can help you |
Sure, thanks |
Hello @Ut1998, you can achieve such a thing using Is this what you are trying to do? |
Benchmark
The text was updated successfully, but these errors were encountered: