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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

getExportProps / saveAsJSON reuse

Thread ID:





128298 Jan 12,2017 06:59 PM UTC Jan 17,2017 11:47 AM UTC JavaScript 1
Tags: ejSpreadSheet
Gabriel Axel
Asked On January 12, 2017 06:59 PM UTC


I am using the spreadsheet component and I am saving the JSON I get with saveAsJSON() (so that I will be able to load it quickly the next time in the UI) and I also use XLExport.getExportProps() to get the payload which I send to the spreadsheet export endpoint to generate XLSX file (so it will be ready for quick download when needed). I periodically send both JSONs to my server, which saves the output of saveAsJSON() locally, and passes the output of getExportProps() to a .Net server for the XLSX export. I noticed that both JSONs are somewhat similar but not identical. Is there an easy way to use one of them to get the other on the server, and reduce the total payload size in the described case? I suppose I could run a browser on the server, but I would prefer a more "lightweight" conversion. I use Scala/Java on my server if it matters.


Silambarasan I [Syncfusion]
Replied On January 17, 2017 11:47 AM UTC

Hi Gabriel, 
Thank you for contacting Syncfusion support. 
We have checked your requirement ‘To generate a getExportProps() JSON from saveAsJSON() or vice versa’ and we would like to let you know that we have processed the both JSON data in different way i.e. skip the needed default properties based on JSON export and Excel export.  And, currently your requirement is not feasible. However, we have considered this as a feature request and it will be available in any of our upcoming releases. 
Silambarasan I 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon