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 row group and sortable columns are not working together #1345

Closed
nndnha opened this issue Jun 13, 2021 · 2 comments
Closed

DataTable row group and sortable columns are not working together #1345

nndnha opened this issue Jun 13, 2021 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@nndnha
Copy link

nndnha commented Jun 13, 2021

CodeSandbox Case
https://codesandbox.io/s/sleepy-leaf-2krq2?file=/src/DataTableRowGroupDemo.vue

Current behavior
When sorting is activated, the rows are no more grouped.

Expected behavior
When sorting by columns, the grouped rows must be retain.

@zsuzsmuzs
Copy link

Same issue for primevue 2.4.x

@djoldman
Copy link

djoldman commented Jul 2, 2021

I ran into this as well.

I've played with adding fields that combine the group field with the field you want to sort. This requires casting everything to a string. But this approach fails with reverse sorting ( we want the group field to sort non-reverse while reversing the sorting field).

I wonder if a hard coded sortMode="multiple" would be the best solution at the moment?

@cagataycivici cagataycivici self-assigned this Aug 19, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 19, 2021
@cagataycivici cagataycivici added this to the 3.7.0 milestone Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

5 participants