How to save diagram as part of a post back including other controls

I have been able to get the save function working to post to another page, but this does not suit my needs as I am expected to be able to click on a save button that would do a post back so that all the controls on the page are saved, not just the diagram.  Additionally, it would be nice to be able to associate individual pieces of the diagram to entities in the database, but for now, I would just like to know how to include the diagram as part of a page post that I am able to get all the controls on the page, not just the diagram.

1 Reply 1 reply marked as answer

AR Aravind Ravi Syncfusion Team July 3, 2020 04:02 AM UTC

Hi Michael, 
 
By default, in the diagram if we want to save diagram means then by using saveDiagram public API method we can able to save the diagram. If we use saveDiagram means then whole diagram content only returned as string from saveDiagram method. This string can be converted to JSON data and stored for future use and include the JSON in the post back method. We do not have support to save the all other controls used in the diagram.  For more information about diagram serialization method please refer to below UG documentation link 
 
 
Regards 
Aravind Ravi 


Marked as answer
Loader.
Up arrow icon