Saving DataTable configuration

UI Components for React
Post Reply
Skullsplitter
Posts: 6
Joined: 18 Feb 2015, 17:14

30 Jul 2020, 18:42

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

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

10 Oct 2020, 23:51

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,

Skullsplitter
Posts: 6
Joined: 18 Feb 2015, 17:14

12 Oct 2020, 02:10

Thanks!

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

23 Oct 2020, 15:48

You're welcome!

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests