We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Save diagram

Hi, do you have a full structure of a ejDiagram-JSON with all the attributes posible? I'm using EJ1.

1 Reply

SG Shyam G Syncfusion Team January 23, 2020 11:20 PM

Hi Stheve, 

Please use diagram save method which returns serialized diagram JSON which contains all the diagram model properties/attributes. Please refer to a code example and the sample below. 

Code example: 
  function diagramSave() { 
        var diagram = $("#diagram").ejDiagram("instance"); 
        //return serialized json  
        var serializedData = diagram.save(); 
     




Regards, 
Shyam G 


Loader.
Live Chat Icon For mobile
Up arrow icon