-
Notifications
You must be signed in to change notification settings - Fork 930
Groupe by type of data rows #1426
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
Comments
See this thread: #904 The table doesn't have this ability built in, but it's possible to do by using the expandableRows feature. I started on a feature for this but got sidetracked. I may look back into it and see how far I was. |
Thanks Patorjk https://material-table.com/#/docs/features/grouping https://material-table.com/#/docs/features/tree-data Section 'Default Grouped Field Example' |
We can have same logic from this link : |
Nesting tables is already possible: https://codesandbox.io/s/hungry-dubinsky-wr1yu?file=/src/App.js I'm not a fan of material-table's API, however, I think they're taking queues from React Grid: https://devexpress.github.io/devextreme-reactive/react/grid/docs/guides/grouping/ When I get some time, I'll try and finish up a beta version of this feature. |
I just updated my previous comment. Which code do you recommend (I meant the easiest to integrate with : mui-datatables ) ? |
I've started work on a grouping feature. The beta version is a PR here: #1441 |
we can add condition for expandal rows ? |
Yep, you can do that in the draft I have up. It'd look like this: (assuming location is at column index 1):
I think I may want to use columnNames instead of columnIndexes, but indexes were easier to work with starting out. I'm think I may change the API to look more like this:
I'm thinking of also adding groupBy and groupByLabel options to allow for custom groupings (outside of just using the column value). Ex:
|
I am not using grouping. I am using "expandableRows". I want to expand some rows on the basis of some condition. I can achieve this with the help of "isRowExpandable". But it is not helping me to hide/remove expandable icon. I want to hide/remove expandable icon of some rows. |
@007AMAN007 can you open a new issue for this? The table currently doesn't have a way to do this, but it should be a pretty straight forward to add. |
Created a new issue #1446 |
Hi @patorjk , My question is always for the group by with some precision I imported your bookseller and I personalized. When I click on the button which is to the left of the title I consult the data as in the photo In my database, I have two types: When : Thanks |
Hi @patorjk , |
I haven't had a lot of time recently. This week I'm going to try to get a version of the feature into a beta release so it can be properly tested out to see how it works for various scenarios. |
ok @patorjk |
Hi,
I have several rows in my interface.
I wanted to group my data by 'Product' as in this example:
Example :
https://ibb.co/cx2kwnT
https://codesandbox.io/s/beautiful-jennings-9g92g?file=/src/App.js
Do you have an idea on the code to do?
Thank you
The text was updated successfully, but these errors were encountered: