vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.6.3] VDatatableserver items per page not working

Open nrichard-coexya opened this issue 1 year ago • 2 comments

Environment

Vuetify Version: 3.5.4 Vue Version: 3.4.14 Browsers: Firefox 125.0 OS: Linux

Steps to reproduce

Just try following the documentation on v-datatable-server with items-per-page simply doesn't work

Expected Behavior

5 items in the table when items-per-page="5"

Actual Behavior

table displays all elements regardless of items per page

Reproduction Link

https://play.vuetifyjs.com/#...

nrichard-coexya avatar Apr 24 '24 13:04 nrichard-coexya

Just update to the latest version

devseckobz avatar May 01 '24 21:05 devseckobz

Just updated to latest version 3.6.3

https://play.vuetifyjs.com/#eNp9ksFugzAQRH9l5QsXDCGUtEW0Ur8j5ODSTYpkjGUvXBD/XgONSALhZs/Ms7TeOXbMmiL80jpoG2QpywgrLQXhZ64AspYLrcfjeClqRaJUaP6lUfwRJDiJb4ncomnRXD2AtHTPWa7RcC0u+JGzJGdPbV5rKmtlXeyY+NHutJKVqC706xLRfukO4KwBdEpUmHoosUJFO6/3H6TISc+B/RKIN4GXJZBsAocl8LoJvC2B900gWpvajT0TN788bzVcWeu1Bs6778GgTDXJwpv6uKstTKkJLFIztaisdG0IOjB4hh7Opq7Ac83zBnZKuxzrfdVI6bM4OAQxO/0BqLjQZg==

The bug is still there

nrichard-coexya avatar May 02 '24 07:05 nrichard-coexya

I tried updating to 3.6.5

The bug is still present: repro link

nrichard-coexya avatar May 13 '24 09:05 nrichard-coexya

This isn't a bug, you have to do the pagination on your backend.

KaelWD avatar May 13 '24 09:05 KaelWD

This isn't a bug, you have to do the pagination on your backend.

What then is the purpose of items-per-page if it does not split the chunk coming from the server into smaller pieces?

sbaum2s avatar Jul 12 '24 09:07 sbaum2s

It controls the dropdown in the default footer and can be two-way bound with v-model, you still have to do the pagination yourself.

split the chunk coming from the server into smaller pieces

Feel free to open a PR if you come up with a generic way to do that.

KaelWD avatar Jul 12 '24 13:07 KaelWD