Hi,
I need the user to select a local csv file and load into the DataTable. Can you please give me a working example?
Below is my sample code.
grid = new webix.ui({
view:“datatable”,
columns:[
{ id:“1”, header:“Country”, width:250},
{ id:“2”, header:“Population”, width:200},
{ id:“3”, header:“Year”, width:100}
],
autoheight:true,
autowidth:true,
datatype:“csv”,
url:“E\Data.csv”
});
The Data.csv file is located in E drive of the local machine and contains the below data.
China, 1 341 990 000, 2011
India, 1 193 290 000, 2011
United States, 311 960 000, 2011
Indonesia, 237 556 363, 2010