DataTable: lazy loading with paginator/sort/filter info

UI Components for Vue
Post Reply
Sellec
Posts: 2
Joined: 15 Jan 2020, 09:04

29 Jan 2020, 08:37

How to collect info about paginator state and filter/sort state of columns to make a complete ajax request?
We have onPage event with argument containing information about paginator state (current page, rows per page), but we need to manually take values from sortField and sortOrder properties to add this into request and make correct DB query.
Also, the information from filter fields need to be included into this argument becouse total rows count would be reduced after filtering on a DB level.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Jan 2020, 08:57

Enhancements is tracked at your issue;

https://github.com/primefaces/primevue/issues/163

Thank you.

juvebogdan
Posts: 1
Joined: 19 Dec 2020, 00:20

19 Dec 2020, 00:26

Is this implemented. On github i just see its closed and docs do not mention how to aggregate this data. Also is there a more complete example as docs state "a more enhanced example with a backend is being worked on and will be available at a github repository"

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests