primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-table: RowGroup not grouping on subsequent pages

Open psarno opened this issue 2 years ago • 2 comments

Describe the bug

We have a p-table component using [lazy]="true" and the following ng-templates:

<ng-template pTemplate="groupheader" let-rowData let-rowIndex="rowIndex" let-expanded="expanded">

<ng-template pTemplate="rowexpansion" let-rowData let-columns="columns">

We also have the row toggle as [pRowToggler]="rowData".

On the first page, it correctly groups by the groupheader / pRowToggler, but on all subsequent pages the grouping stops and each line is shown individually.

Page 1:

image

Page 2:

image

Environment

Angular 14.0.3 / PrimeNG 14.0.0 testing with Chrome.

Reproducer

https://stackblitz.com/edit/github-sb1bvu?file=src/app/app.component.ts

Angular version

14.0.3

PrimeNG version

14.0.0

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

16.13.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Lazy load data into a p-table component with a paginator
  2. Click on any page other than page 1
  3. Note that the grouping is no longer applied

In Stackblitz repo, click page 2, rows no longer grouped:

image

Expected behavior

p-table continues to group by the unique pRowToggler as defined in the groupheader, as it does on page 1.

psarno avatar Aug 11 '22 14:08 psarno

I also have that problem with lazy and rowGroupMode="subheader"

Demo https://stackblitz.com/edit/primeng-tablelazy-demo-udw8pv?file=src/app/app.component.html

ariancruz avatar Aug 23 '22 11:08 ariancruz

This is still causing us problems in production and I don't have a workaround.

psarno avatar Sep 21 '22 18:09 psarno

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

mertsincan avatar Nov 09 '22 22:11 mertsincan

Can we get this issue reopened @mertsincan? Still experiencing this issue on 14.2.3

lwestfall avatar Aug 10 '23 20:08 lwestfall

Any news about this issue? I have same issue on 14.2.7.

lorenzodiato avatar Aug 19 '23 17:08 lorenzodiato

@mertsincan This issue is still reproduce-able in version 17.5.0

Stackblitz demo with version 16.9.4

Stackblitz demo with version 17.5.0

rajakvk avatar Feb 03 '24 02:02 rajakvk

Why is this closed?

digeomel avatar Jul 11 '24 12:07 digeomel