primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
9.87k stars 1.19k forks source link

DataTable: RowGroupMode rowspan does not work with virtual scroller #5651

Open ces-tec opened 4 months ago

ces-tec commented 4 months ago

Describe the bug

When creating a DataTable with rowGroupMode="rowspan" and a virtual scroller, only the first rows are grouped, after scrolling no other row is grouped.

Reproducer

https://stackblitz.com/edit/primevue-create-vue-issue-template-d27mhp?file=src%2FApp.vue

PrimeVue version

3.50.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

Simply scroll through the table and see the rows not being grouped by year, like they should because of groupRowsBy="year.

Expected behavior

If the rows have the same value passed to groupRowsBy, they should be grouped, even with virtual scroll.

NaturesRadar commented 4 months ago

Overall rowGroupMode and virtual scroller do not work together which is bad for performance and design. I have the same problem. I hope for a fast fix.