Skip to content

using filter-control with server side pagination results in 2 AJAX queries #1334

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

Closed
prymitive opened this issue Aug 26, 2015 · 5 comments
Closed
Labels
extension Issues for adding or updating our extension.

Comments

@prymitive
Copy link

I wanted to use filter-control plugin and I've noticed that there are 2 identical AJAX queries made if I add any filter. I did some quick debugging and it turns out that the first one is fired by this.onSearch(event); after that this.updatePagination(); is called and it also causes AJAX query to the server.

https://github.com/wenzhixin/bootstrap-table/blob/master/src/extensions/filter-control/bootstrap-table-filter-control.js#L434

@djhvscf
Copy link
Collaborator

djhvscf commented Aug 27, 2015

Oh! Can you provide a new pull request in order to solve this issue?

@djhvscf djhvscf added the extension Issues for adding or updating our extension. label Aug 27, 2015
@prymitive
Copy link
Author

I'll try, I need to familiarize myself with this code first

@djhvscf
Copy link
Collaborator

djhvscf commented Aug 27, 2015

ok, sure @prymitive

@knoguchi
Copy link

knoguchi commented Dec 4, 2015

I commented out the this.updatePagination() for now. There might be a bad effect but so far everything works for my purpose - select filter, pagination.

@djhvscf
Copy link
Collaborator

djhvscf commented Apr 14, 2016

Same of #1605

@djhvscf djhvscf closed this as completed Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension Issues for adding or updating our extension.
Projects
None yet
Development

No branches or pull requests

3 participants