Skip to content

Question: Tree Data #908

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

Open
cr101 opened this issue Sep 10, 2019 · 7 comments
Open

Question: Tree Data #908

cr101 opened this issue Sep 10, 2019 · 7 comments
Labels
wontfix Support for this request is not planned at this time

Comments

@cr101
Copy link

cr101 commented Sep 10, 2019

Does this table component have a tree data feature that could be used for data that has nested relations?

@gabrielliwerant
Copy link
Collaborator

It depends on exactly what you are trying to do. As in the data-as-objects example. you can have nested data that you can format into new columns. If you mean, like some sequence of expandable rows that further nest data, then not out of the box, though with a lot of work, you can create these customizations yourself using renderExpandableRow and nesting other tables inside, though this gets very messy.

At its core, this library is intended to build on the material concept of data tables, which is a fundamentally 2-dimensional abstraction.

@cr101
Copy link
Author

cr101 commented Sep 11, 2019

@gabrielliwerant I'm looking for something like this
Screenshot_7

@foxbit19
Copy link

Hi, a feature like this could be nice.
If I understand correctly @cr101 needs a nested row (or a 2nd level row) like the main one. The nested row needs to be showed, selected and must be responsive on click events like the 1st level one.
I imagine that the columns could be reactive on sorting too.

@cr101 is this correct?

@gabrielliwerant I know that the library is intended to build the material 2-dimensional concept of tables but I'm asking if there are a way to do more.

This is related with #904.

@gabrielliwerant
Copy link
Collaborator

This isn't a feature I'm planning to support at this time. I would maybe take another look at it once critical issues are taken care of, there's a lot more testing, and the table is compatible with later versions of material ui and react.

@gabrielliwerant gabrielliwerant added the wontfix Support for this request is not planned at this time label Oct 14, 2019
@jinman
Copy link

jinman commented Apr 24, 2020

We need this too. Any guidance on how we can implement this feature?

@gowda-nirmal
Copy link

@cr101 Please have this feature. Would love to have this.

@dantevvp
Copy link

A bit late to the party, but I stumbled upon this problem and found a quick solution. You can pretty much make it look native this way.

https://codesandbox.io/s/prod-meadow-sq1p6

Basically, I have nested arrays of objects that I render on a new MUIDataTable, and I pass the array to the nested table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Support for this request is not planned at this time
Projects
None yet
Development

No branches or pull requests

6 participants