daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 520 forks source link

Inconsistent behavior of select all rows checkbox with pagination #609

Open anatoly314 opened 7 years ago

anatoly314 commented 7 years ago

Will try my best to describe my issue, hope I'll success with it. For example I have in total 100 rows, and pagination (with lazy loading) set up to show only 20 rows each time. It means that each time when I move backward, forward I issue request to server to load next chunk of data.

Sometimes I need to perform a group action on all rows. But I can't distinguish between a scenario when user selected all rows checkbox and user selected manually an each row on a page. In a both cases ngModel which represents selected rows, populated with equal amount of rows.