-
Notifications
You must be signed in to change notification settings - Fork 324
Paging after filtering with the ClientSideFilter will reset the whole collection #194
Comments
First of all, thank you for this awesome grid! Was just wondering when you think you'll have a fix for this issue - or if you have any ideas for workarounds in the meantime. I've been trying to figure something out but don't really want to sink any more time into it. I'd be ok (for now) with just displaying an error when it gets into an error state. This error is also happening for me with sorting:
Again, thank you so much!! |
Ah I had a really busy week, but expect this to be fixed this weekend! |
Awesome! Looking forward to it :) |
https://github.com/wyuenho/backgrid/tree/filter-paginator-fix Everything should work as expected. There are some changes to Paginator#controls (changed format from fastForwardHandlerLabels), All the filter types will now accept the pageable collection directly without giving it collection.fullCollection. The client filters won't listen to change events from the search box anymore and the keyup event is changed to keydown. Let me know if it doesn't work for any reason. I'll finish up the tests in a little bit. |
Looks like the paging after filtering issue is fixed in the new branch, but the (related) filter > sort > remove filter issue is still a problem. @wyuenho - Would you like that to be in a separate issue? |
It works!! Hooray :) |
Steps to reproduce:
The whole collection is now the last filtered results. The expected result should be the original result set.
The text was updated successfully, but these errors were encountered: