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?
Keep DataTable Pagination and Filter Last State
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
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,
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,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests