Your demo is very slow at loading csv files. I know its a big accomplishment just to load them but working with files in my opinion needs to be faster to be useful to the end user because they would leave the page when bored. With that said how should I save the data for it to load faster? Your control is awesome. Even when I upload files and read them using the XLSX.js component for the datagrid it's slow but if I read data from a database it's blazing fast. So do you recommend that I save my csv file's in a db and create a JSON object to load? Anything special about how to structure? Will it create the columns automatically if I don't identify them?
Thanks
Hi William,
Query #1: Loading CSV files in demo site
For
demonstration purposes, we published our web service open/save action
and mentioned it in our demo site.You can use this demo URL on your end
as well, or you can use a local service for open and save actions. And
we have published our API services in the GitHub location; for more
details, please refer to the below links.
Service sample Location: https://github.com/SyncfusionExamples/EJ2-Spreadsheet-WebServices/
https://ej2.syncfusion.com/react/documentation/spreadsheet/open-save/
You can use the above web service for open/save actions to resolve performance issues on your end.
To create the local web service, please refer to the below link.
https://www.syncfusion.com/kb/13200/how-to-remove-trial-version-tab-created-in-spreadsheet
Query #2: To save/retrieve the spreadsheet as JSON in data base
Your requirement can be achieved in our spreadsheet by using the openFromJson and saveAsJson methods. We have already demonstrated this in our KB documentation itself. You can refer to the below link.
Load and save Spreadsheet as Byte array in Data Base:
Load and save spreadsheet as JSON in Data base:
Load and save spreadsheet cell data in SQL Table:
To save/open the excel file in server, please refer to the below link.
https://www.syncfusion.com/kb/11970/how-to-open-and-save-an-excel-file-to-server-in-the-spreadsheet
API Links:
https://ej2.syncfusion.com/documentation/api/spreadsheet/#saveasjson
https://ej2.syncfusion.com/documentation/api/spreadsheet/#openfromjson
Please get back to us, if you need any further assistance with this.
This is fantastic- Thank you
You're welcome, William. Please feel free to contact us if you need any other assistance.
NOTE: If that post is helpful, please consider accepting it as the solution so that other members can locate it more quickly.