Skip to content
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

DataTable: Expander with grouping #4905

Open
nedimcimpo opened this issue Sep 8, 2023 · 3 comments
Open

DataTable: Expander with grouping #4905

nedimcimpo opened this issue Sep 8, 2023 · 3 comments
Labels
Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request

Comments

@nedimcimpo
Copy link

Describe the bug

I wanted to create table where there would be grouping by 2. Let's say if in case of working with months it would be like first 2 weeks and last two weeks. Inside those I wanted to be able to expande that row for first two weeks where I would have days or smetginh else. But... Since in this example below I have group of two and that td has rowspan of 2, as soon as I do the expand goes off becase rowspan stays the same and now we have 3 insted of 2 rows or maybe even 4 if we expand both first and second week. I've tried to manualy set number of rowspan for that column but it's not working as expected. Is there a solution or workaround?

Reproducer

https://codesandbox.io/s/primereact-demo-forked-fsljr7?file=/src/App.tsx

PrimeReact version

9.5.0

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

Chrome

Steps to reproduce the behavior

No response

Expected behavior

No response

@nedimcimpo nedimcimpo added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 8, 2023
@melloware
Copy link
Member

Are either one of these issues your issue?

#2598

#619

@nedimcimpo
Copy link
Author

Are either one of these issues your issue?

#2598

#619

I don't think so. Second one is close. The thing is that when I do the grouping, I want to be able to expand row in that group and that group rowspan goes up by the amount of rows that have been expanded in that group. Rowspan for that grouped cell stays the same and its causing issues.

@melloware
Copy link
Member

OK thanks for checking.

@melloware melloware added Type: New Feature Issue contains a new feature or new component request Status: Discussion Issue or pull request needs to be discussed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

2 participants