Page 1 of 1

DataTable: lazy loading with paginator/sort/filter info

Posted: 29 Jan 2020, 08:37
by Sellec
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.

Re: DataTable: lazy loading with paginator/sort/filter info

Posted: 30 Jan 2020, 08:57
by cagatay.civici
Enhancements is tracked at your issue;

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

Thank you.

Re: DataTable: lazy loading with paginator/sort/filter info

Posted: 19 Dec 2020, 00:26
by juvebogdan
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"