Skip to content
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

Table Filter可以实现Server端查询吗 #3

Open
neozhu opened this issue Nov 17, 2014 · 1 comment
Open

Table Filter可以实现Server端查询吗 #3

neozhu opened this issue Nov 17, 2014 · 1 comment

Comments

@neozhu
Copy link

neozhu commented Nov 17, 2014

如何通过ajax 传递参数到服务器端查询

@lukaskral
Copy link
Owner

hi @neozhu,

I believe your question is about how to pass filter arguments to the server. If you connect the filter to the bootstrap table (connectTo option) and the table is using server as a data source (url option of the bootstrap-table), the the filter should automatically set new url of the data source when filter is applied. The new URL contains attribute filter with all settings.

Please check http://plnkr.co/edit/XA0kUc?p=preview . If you inspect the page and check the requests, every time you apply the filter there is a ajax request to the static json file (the server side logic is not implemented so the filtering is not working in this example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants