Dynamic client-side pagination does not work if count is not set
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Assuming that my Component class has a limit
property which holds a number representing the amount of rows that I want to display (as a limit per page). This value can change.
Current behavior
If I set only: [limit]="limit"
then the pagination will not work.
If I set: [limit]="limit"
and [count]="limit"
then the pagination will work as expected (so limit
rows per page).
Expected behavior
[count]
is supposed to be The total count of all rows.
so I don’t understand why I need to bind it to limit
instead of the total amount of rows.
-
Table version:
^10.2.1
-
Angular version:
^4.3.6"
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
HTML Client side pagination - Cant get dynamically added data
1 Answer 1 · Instantiating the pagination after the <tr> HTML are appended, and · Replace $('#userList table tbody').html(tableContent); with $('# ...
Read more >How to add a row dynamically when using server-side ...
Hi, I am using datatables with server-side processing turned on. There are instances where persistence in database is done asynchronously, ...
Read more >Row Pagination - JavaScript Data Grid
Pagination API Returns true when the last page is known; this will always be the case if you are using the Client-Side Row...
Read more >Server paging - TreeGrid
Count of rows the page contains. It specifies height of the page when it does not show rows yet. It is also result...
Read more >Examples • reactable - GitHub Pages
By default, pagination is hidden if the table only has one page. To keep the pagination shown, set showPagination to TRUE . This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wizarrc @amcdnl thanks a lot!
Accepted and published 😃