Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ido on Sep 23, 2009 12:31
open dhtmlx forum
How do I load a CSV file into a grid

I just started using dhtmlxGrid. I followed the tutorial which loaded an XML file which went fine. Ithen wanted to load a CSV file which is what happens in my case. I followed the online manual and used the command:

mygrid.load("file.csv", doAfterRefresh, csv);

as well as:

mygrid.loadCSVFile("file.csv", doAfterRefresh);

as well as:

mygrid.loadCSVFile("file.csv");

Neither of those load the data into the grid. The csv file is in the same directory as the html file.

Any help would be appreciated.

Thanks.
Answer posted by dhxSupport on Sep 24, 2009 02:16
You should use mygrid.load("file.csv", doAfterRefresh, "csv");
Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:data_loading