Keep DataTable Pagination and Filter Last State

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
alihasanash
Posts: 15
Joined: 30 Mar 2021, 16:17

12 Jul 2022, 08:31

I want to keep/save the last state on the DataTable filter or selected page on pagination.
For example, I'm on page 3 and edit a record by redirecting to a different form. Then when I finished and go back, I want to automatically return to page 3.

Or another case, I use global search to find a specific record, then perform the same action (edit the record on different form), and when I return to the DataTable, I want to the filter is still there.

So far, the pagination has always return to 1 and filter is gone.

Any tips?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

12 Jul 2022, 10:39

Hi,

This is not related to Layout or Theme. You can use the core forum for this. Also, maybe multiViewState property on DataTable can help you; https://www.primefaces.org/showcase/ui/ ... tate.xhtml

Best Regards,

Post Reply

Return to “Diamond - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests