components icon indicating copy to clipboard operation
components copied to clipboard

[Table] Paginator doesn't play nice with expandable rows

Open parker789 opened this issue 8 years ago • 8 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Using the when predicate within mat-table, i'd like to also be able to use MatPaginator correctly.

What is the current behavior?

Right now we have a working example of an exandable row within the table, but unfortunately these "hidden" rows are included within MatPaginator's length.

What are the steps to reproduce?

Can get a working plunkr if needed

What is the use-case or motivation for changing an existing behavior?

It's currently broken without

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Latest / Chrome OS

parker789 avatar Dec 19 '17 16:12 parker789

Is this because you are using the MatTableDataSource?

andrewseguin avatar Jan 23 '18 23:01 andrewseguin

Has this been fixed yet? I am also using MatTableDataSource for expanded rows.

VivekShingala avatar Aug 06 '18 01:08 VivekShingala

It's been so long since I've worked with this I'd have to dig some older code up to determine that. I'm assuming @VivekShingala that this is still an issue?

parker789 avatar Aug 06 '18 12:08 parker789

I have the same issue, please help @parker789

CindyLulu avatar Sep 11 '18 08:09 CindyLulu

Hi I have the same issue. Row expansion works but page count doubles

When rows expanded, Page count doubles.

I used MatTableDataSource

May i know if this is fixed ?

kamalSaiDd avatar Nov 01 '18 22:11 kamalSaiDd

same thing here, page count is doubled with "when," also using MatTableDataSource. Any update on a fix?

josephkane avatar Nov 14 '18 16:11 josephkane

closing this as it's been dead for awhile

parker789 avatar Jul 09 '19 13:07 parker789

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.