Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi, 

  I have created a spreadsheet control and I save it into a database using the method saveAsJson

spreadsheet.saveAsJson()

             .then(Json=> saveToDatabase(JSON.stringify(Json.jsonObject)));


At the attachment, you can see the content of the database field that contains the json representation of the spreadsheet. 

When I try to load the data from the database using the following method, nothing is displayed on the spreadsheet:

var spreadsheet = new ej.spreadsheet.Spreadsheet({});
// Render initialized Spreadsheet.
spreadsheet.appendTo('#element');
var ssd= fetchdatafromdb();

spreadsheet.openFromJson({ file: ssd.json()});

Although I've followed the steps of the relevant sample 
How to save and retrieve the Spreadsheet data as JSON in database nothing is displayed in the spreadsheet.

Regards,
George