-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination must be reset after new filter #98
Comments
Are you using #ngTasty version 0.5.0 ? This looks an old bug already fix few months ago. |
yes it is 0.5.0 |
What table are we talking about: <div tasty-table bind-resource="resource"> ... </div> Table server side <div tasty-table bind-resource-callback="getResource"
bind-init="init" bind-filters="filterBy"> ... </div> I try to replicate the error on the docs, but was not possible. |
I'm talking about server side one. follow these steps to reproduce the bug:
|
#ThankYou @sazary to report this issue, was really helpful! |
Thank you for fixing it! |
I'm not sure that this has been fixed, as we're running into the same issue (using 0.5.5), and I can repro on the Table with reload callback page.
The params string doesn't reset the page to 0, instead leaves it at I would expect this to reset the page to 0 (as effectively the user is starting from scratch). |
Hey @thesilverbadger your problem was fix in the #142 issue. |
Hi there, I think the issue may still be present in the latest version 0.5.8. We can test it this way:
There is a result but it is not shown (I am attaching a snapshot of the problem). If we click on the page number 1 everything would be fine. Regards, Javi |
Hi @javi-more-garc thanks to report the bug, Just fix that :-) |
Hi, thank you for your response. My implementation does not rely on a front-end filter but rather performs a search and the server returns all results sorted/ filtered. The behavior is analogous: say I search and get 15 results. I click on the second page and search again using a more restrictive filter. The server returns 6 results this time but there are no rows shown even when I can see there is a page: Even the footer is right: "Page 1 of 1, of 6 entries" but there are no rows. If I click on the page (1) everything is fine (i.e. rows are displayed) Is there any way to sort of reset everything (current page, sorting..) so that the new results from a search are displayed as if it was the first time? Thank you, Javier |
@javi-more-garc can you please open a new issue about this error. :-) |
Hi
these are the steps to reproduce this bug:
how to fix the bug:
reset pagination to page 1 after every change in filters.
The text was updated successfully, but these errors were encountered: