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 functionality is not working for large amount of JSON data.

Hi All, 

I am using syncfusion's diagrams library for plotting the map. Now, I am using the save and load functionality, but the JSON data size is to large than regular size so I am getting download error issue while saving the node models into JSON format. Also, load functionality is not working as data is large. Could you please help me with this.  

1 Reply

RT Ramya Thirugnanam Syncfusion Team July 18, 2019 08:57 AM UTC

Hi Namrata,  
 
Thanks for contacting Syncfusion support. 
 
Please use serializationSettings preventDefaults property as true which simplify the saved JSON object without adding the default properties that are presented in the diagram. Please refer to a code example below.  
 
Code example:  
App.component.html  
<ejs-diagram #diagram id="diagram" width="100%" height="700px" [serializationSettings]="serializationSettings" > </ejs-diagram>  
  
App.component.ts  
// set preventdefault value as true  
    public serializationSettings: object = {  
      preventDefaults: true  
     
  
 
Regards, 
Ramya T 


Loader.
Live Chat Icon For mobile
Up arrow icon