Saving state into local Storage

Hi,

Im using an array in local storage and have been able to load and render the objects onto the kanban board. Each object in the array has been saved with the status of "open" - I want to change the state and save it when it has been dragged onto a different column so that when I refresh or return to the page, the task is in the correct place.

Ta


1 Reply

VY Vinothkumar Yuvaraj Syncfusion Team March 6, 2023 03:49 PM UTC

Hi Layan,


We recommend using the "enablePersistence" option, which saves the current state of the board, including the status of your tasks. To enable this feature, you can set the "enablePersistence" option to "true" in your code.

We also have a sample available on StackBlitz that demonstrates how to use this feature in React:

https://stackblitz.com/edit/react-inq1md?file=index.js


You can find more information about this option in our documentation at the following link:

https://ej2.syncfusion.com/react/documentation/kanban/persistence


API Link : https://ej2.syncfusion.com/react/documentation/api/kanban/#enablepersistence


Please let us know if you have any further questions or concerns.


Regards,

Vinothkumar


Loader.
Up arrow icon