gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 934 forks source link

Expandable / child rows #214

Closed patorjk closed 5 years ago

patorjk commented 6 years ago

This project looks pretty cool. I was reading over the documentation but didn't see anything on expandable rows*. Is this something I missed, and if not, does this project plan to add expandable rows in the future?

gregnb commented 6 years ago

hey @patorjk thanks for the feedback. As it stands right now I'm not so sure if I would add something like this but I'll add a community feedback tag and see what people think

patorjk commented 6 years ago

Sounds good. There's been discussion about it for the Angular2 datatable [1,2], though I can't tell if they've added it for it or not. If you decided to green-light it but don't have time yourself, let me know and I could look into creating a PR.

[1] https://github.com/angular/material2/issues/6095 [2] https://github.com/angular/material2/issues/5936

marjan2k commented 6 years ago

Something like this will be really helpful

KamilKafara commented 6 years ago

In my opinion will be really helpful, i will wait for it ;)

DTupalov commented 6 years ago

Yes, this feature would be helpful. Right now we have tasks, that need expandable rows.

Aaron-Lei commented 5 years ago

There is an urgent need for this expandable table. Many thanks!!!

rahulgupta-mmr commented 5 years ago

Great project! I have found it to be very useful and scalable. I do agree with the others on this one, having the ability to display data in a hierarchy manner while being able to still search/filter/export would be very helpful!

gregnb commented 5 years ago

I've added this feature in the latest release (beta-44) and the example usage is here:

https://github.com/gregnb/mui-datatables/blob/master/examples/expandable-rows/index.js

Thanks for everyone's patience

morganroux commented 5 years ago

Hello eveyone and congratulations for this repository :) @gregnb , in your example the expandable row expands to just one more row. Is it possible to render multiples child instead of just one ? An application would be using packages : rows are representing packages and when you expand them you see what there is inside the package. Thank you for your help !