question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic client-side pagination does not work if count is not set

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
FrancescoBorzicommented, Sep 7, 2017

@wizarrc @amcdnl thanks a lot!

2reactions
amcdnlcommented, Sep 7, 2017

Accepted and published 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found