dir-paginate load all data before filtering itemPerPage
See original GitHub issueHi guys
I’m developing an angular app that loads my list of users in a table. As quantity of users is big, I need use pagination. But there is one problem:
When I click on next page button (for example num#2) , first, table shows all users (all data load), then (itemPerPage) filter apply.
<tr dir-paginate=" x in user | filter : searchFunction | itemsPerPage : 15">
<td>{{x.id}} </td>
</tr>
<dir-pagination-controls max-size="15" direction-links="true" boundary-links="true" >
</dir-pagination-controls>
Any suggestion will be appreciated …
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
AngularJS dirPaginate Only Filtering current page
It only sorts the current page of Data, if i use the pagination and click page 2 it will then only filter page...
Read more >Search Sort and Pagination in ng-repeat - AngularJS
This directive will replace the ng-repeat directive in our code. And we will add the itemsPerPage filter which is provided by this library....
Read more >How to Filtering, Sorting, and Paging in Angular JS?
The itemsPerPage should be applied after all other filters. And, then add the following code right after your grid.
Read more >Angular Material Data Table - Paging, Sorting and Filter ...
Angular Material Data Table - Paging, Sorting, FilteringContent discussed : - render angular material table from a list- display processing ...
Read more >Pagination Js Example - Bar Sereno
Pagination Js ExampleBCD tables only load in the browser with JavaScript enabled. js ... React components for sorting, filtering and pagination of data....
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 Free
Top 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
Hi again dear Michael , thank you so much for your answer. I finally solve this issue. The problem was in one of my CSS files. I’ve used below code for animating hover effect :
It takes 0.5s for animation of each row and when I change page, it causes some delay.
👍 👍
Glad you got it sorted, thanks for sharing the details of the cause.