How to import excel file to the grid?

How to add a toolbar button to import an excel file to the grid or replace all the grid data?

3 Replies

RS Rajapandiyan Settu Syncfusion Team April 2, 2020 02:18 PM UTC

Hi dosnivy, 

Greetings from syncfusion support. 

Query : How to add a toolbar button to import an excel file to the grid or replace all the grid data? 

From your query we could see that you need to load excel file data into the Grid. In EJ2 Grid there is no support for loading Excel file data as grid’s dataSource.

By default the grid supports only the javascript array of Objects. We can able to bind both local and remote data to the grid. Please refer the below documentation for more information. 
 
 
Please get back to us if you need further assistance on this. 
 
Regards, 
Rajapandiyan S.


ST Stefan April 19, 2020 07:00 AM UTC

Hello, i am trying to do kind of the same thing. My goal is to load in a excel file in order to replace/update the data in the grid.

In my project (electron desktop app) the datasource is a sql database. Because editing all data in the grid itself is a bit time consuming, i would like to export the selected rows to excel, edit them there and import them back into the table. 

Then the table should show the modified rows. After that, i click on the "Update" button of the toolbar and the changes should persist in my database.

Is there any solution to this? I appreciate every kind of help.

Thanks in advance!
Stefan 


RS Rajapandiyan Settu Syncfusion Team April 20, 2020 01:33 PM UTC

Hi Stefan 

Thanks for your update. 

Query : i am trying to do kind of the same thing. My goal is to load in a excel file in order to replace/update the data in the grid. 

As already said in the previous response, there is no support to import the Excel data into grid. EJ2 grid only accepts the data of JSON object.  

Please get back to us if you need further assistance on this. 

Regards, 
Rajapandiyan S  


Loader.
Up arrow icon