I am using the Gantt component in a Next.js application, and I need to save the column state to the backend so that I can retrieve it on a subsequent access. Could you advise on how to achieve this?
What are the TypeScript types for this functionality?
Here is how we are currently initializing the Gantt configurations.
Thank you so much for the reply! I'm now saving the state on the backend server, but I encountered another issue.
When I change the columns and refresh the page, retrieving the changed columns doesn't display them in the GANTT. However, if I modify the width of an existing column, it does show the updates. Could you help me with this?
This is the object I'm receiving from the backend:
On our demo (the one that I shared earlier), the order of the columns are preserved after you changing them and reload the page. So we'll need a complete test case for us to debug and assist you.
The columns' order and width are being saved and retrieved perfectly from the back-end server.
The real problem is when I add a new column using the "addnew" column in the Gantt chart. When I do this the column is saved in the back-end, but if I reload the page, the columns are not added in the Gantt chart, even though they are present in the object returned by the back-end State, like this:
These are the default columns defined in the config object:
This functionality of adding columns and having them saved and retrieved in another access in the state is not available in that demo, which only supports saving the columns size and their order. Is that even possible?