I have tried to display current table row count with total count i got total value count via #table.value.length but i can't able to get current page row count, I used turbotable in primeng. I need to display like blow image for total count/ row count i.e Tatal: 10/5.
Asked
Active
Viewed 3,495 times
2

SaranViji
- 383
- 2
- 6
- 17
1 Answers
3
You are using pagination for the table. You can use rows and totalRecords state of pagination to display total count/ row count
<p-table #tabel ...></p-table>
{{table.totalRecords}}/{{table.rows}}

Zarna Borda
- 695
- 1
- 6
- 22
-
Thanks for help but before your answer i found solution. Thanks for spending – SaranViji Mar 28 '19 at 03:44
-
I had a another problem while i click next page if that page has 1 record means the count need to display totalrecords / 1 , but instead of display rows value 5 – SaranViji Mar 28 '19 at 04:15
-
@SaranViji If you have a new question, post a new question. Don’t comment. And _don’t_ post it on Meta Stack Overflow. – Sebastian Simon Mar 29 '19 at 05:20