-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Multiple groupField issue #2333
Comments
https://primefaces.org/primereact/showcase/#/datatable You can use the rowSpan field to define multiple rows for one datapoint. Please note that it is bad manners to tag people to get a faster response. |
Okay, Thank you for your response. |
Hi Team, rowGroupMode="rowspan" We tried the above-mentioned code like that but not working. Please help me with the issue. Thanks in advance. |
Please show a whole sample using the code sandbox link provided when opening a new ticket. |
Hi Team, Code sandBox link: https://codesandbox.io/s/charming-cloud-8y2yz How way to set multiple groupFields in a single table issue. Thanks in advance. |
Ok, now I understand your problem. Primereact does not offer a way to group by multiple columns. The easiest approach would be to write a grouping algorithm (or import one, like d3.nest) to group your data. And then create rows from this data, with only the first row having all fields. Like this: https://codesandbox.io/s/cranky-herschel-36ypx?file=/src/demo/DataTableRowGroupDemo.js But sorting functionality and similar will most likely break, so you will have to write your own sort methods. |
Hi, We've added it to our roadmap and will implement it in future releases. Thanks a lot for the feature request! Best Regards, |
I will be very glad when it becomes available. Missing it a lot in my project. |
Duplicate of #619 |
How to implement filtering for multiple fields in same column. Suppose in case of a component inside a column containing name, email, phone no, and now we want to filter on the basis of all three things. |
Hi Team,
Could you please suggest me how way to implement multiple groupField in row group data table.
Thanks.
The text was updated successfully, but these errors were encountered: