I have a table with many columns that can be configured with few or many columns (chosen from a list) and each column can be reordered. I have successfully saved the column configuration so that the user can be presented with the same configuration each time they log in. However, the columns are also resizable and I do not see a way to retrieve each column size to store along with the column order. Any ideas?
Thanks,
Skullsplitter
Saving DataTable configuration
-
- Posts: 4603
- Joined: 29 Jun 2013, 12:38
Hi,
I think you can use custom save state options. Please see; https://www.primefaces.org/primereact/s ... able/state
You can save the changes to database on componentWillUnmount and then on componentDidMount, you can load the changes from database. Please review the above link.
Best Regards,
I think you can use custom save state options. Please see; https://www.primefaces.org/primereact/s ... able/state
You can save the changes to database on componentWillUnmount and then on componentDidMount, you can load the changes from database. Please review the above link.
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Posts: 4603
- Joined: 29 Jun 2013, 12:38
You're welcome!
Best Regards,
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Posts: 1
- Joined: 01 Nov 2020, 06:39
- Contact:
DataTables has the option of being able to save the state of a table (its paging position, ordering state etc) so that is can be restored when the user reloads a page, or comes back to the page after visiting a sub-page. This state saving ability is enabled by the stateSave option.
Follow my journey https://www.coastandards.org/testogen-review-results/
-
- Posts: 4603
- Joined: 29 Jun 2013, 12:38
Thanks a lot, @CoreyGriffin!
Best Regards,
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests