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

[Bug Report] v-data-table search option doesn't work when using the "Paginate and sort server-side" example from vuetify website. #3475

Closed
Riotsmurf2 opened this issue Mar 5, 2018 · 3 comments
Labels
invalid The issue is missing information or is not a valid bug/feature request

Comments

@Riotsmurf2
Copy link

Versions and Environment

Vuetify: 1.0.4
Vue: 2.5.13
Browsers: Chrome 63.0.3239.108
OS: Linux x86_64

Steps to reproduce

Use the default example from the vuetifyjs website for v-data-table "Paginate and sort server-side"
Then add the search bar above using the example "Search with custom no-results slot" only taking the search field from the example.

Expected Behavior

Searching this table should hide items not related to the search.

Actual Behavior

It shows a loading bar then does nothing.

Reproduction Link

https://codepen.io/Riotsmurf/pen/RQzWgR

Other comments

I am wondering if i have to create my own search function or that this is a bug. You can see in my code pen that everything in this is from the vuetifyjs site copied exactly and not modified.

@plokko
Copy link

plokko commented Mar 5, 2018

If you paginate/sort server-side you also need to filter server side:
the server does return a fraction of the whole dataset so filtering on just a fraction of the data is useless, just add the search filter in the request and implement it server-side.

@nekosaur nekosaur added the invalid The issue is missing information or is not a valid bug/feature request label Mar 6, 2018
@nekosaur
Copy link
Member

nekosaur commented Mar 6, 2018

What @plokko said

@lock
Copy link

lock bot commented Apr 14, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid The issue is missing information or is not a valid bug/feature request
Projects
None yet
Development

No branches or pull requests

3 participants