vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.7k stars 6.95k forks source link

[Bug Report] Server side search at table does work as it should #3396

Closed Rolanddoda closed 6 years ago

Rolanddoda commented 6 years ago

Versions and Environment

Vuetify: 1.0.0-beta.6 Vue: 2.5.13 Browsers: Opera 51.0.2830.34 OS: Windows 10

Steps to reproduce

I have a table and i am using pagination.Everything with pagination works fine.But when i want to search in table (SS search) the backend returns me totalItemsNumber of results that match the search and also the items per page.

Expected Behavior

For example when i search something that match with columns in database everything it returned well (totalItems,items).So when the totalItems is bigger than rowsPerPage it expected to enable the next button for pagination

Actual Behavior

But the next button for pagination is disabled.When i inspect and made the next button enabled and i press it,it shows me the next page as it should.

Reproduction Link

https://jsfiddle.net

Other comments

I dont know if it is a bug,but since i set the totalItems to something tha pagination has to work as well as it should

Rolanddoda commented 6 years ago

Hmm i figoured out!!!When i do server side search i have to remove the :search property from table!! So i think when the :search property is in data-table vuetify looks to make some search in frontend i guess. So i removed from there and now works perfectly!

lock[bot] commented 5 years ago

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