Hi,
There have been some problems recently with importing data from the outside using Grid components.
In the following examples: Smart Grid for Angular | Grid | Smart UI for Angular (htmlelements.com),
The data should be able to be imported and displayed from a.xlsx file. I’m sure the file path is correct, but “No Rows” is always displayed. Could you please tell me the reason, or should I make some changes somewhere?
In addition,
If I change the.xlsx file to .json file, can it work normally? Or what else needs to be modified?
Thank you for your help and looking forward to your early reply.
BR,
LC
Hi LC,
The demo is for importing data from excel, not from json. If the local path to the data.xlsx file is correct, it will work, otherwise it will not be able to load data.
Best regards,
Peter Stoev
Smart UI Team https://www.htmlelements.com/
Hi,
I’m sure the path about the.xlsx file is correct because I placed it in the same folder as data.ts.
import { GetData } from ‘../common/data’;
the “GetData” function can be used. But the page cannot display the data in the.xlsx file.
BTW, If want to read data from a.json file, is there any examples to refer?
Thank you.
BR,
LC