Save diagram in json format in database on button click and load the same on page refresh

Hi,
I want to save the diagram in json format in a table in database on button click and load the same when the page gets refreshed. Please help. 

1 Reply 1 reply marked as answer

AR Aravind Ravi Syncfusion Team June 2, 2020 07:13 AM UTC

Hi Rakhi, 
 
By using diagram public API methods SaveDiagram and LoadDiagram we can able to save and load the diagram. The saveDiagram method is used to save the diagram as a serialized string. This string can be converted to JSON data and stored for future use.  By using the loadDiagram method we can load the serialized string from database or from local storage.  
 
For more information about diagram serialization please refer to below UG link 
 
 
Regards 
Aravind Ravi 


Marked as answer
Loader.
Up arrow icon