Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by tokenal on Jul 08, 2008 02:56
open dhtmlx forum
loadcsv or loadcsvFile function not found

mygrid = new dhtmlXGridObject('gridbox');    
    mygrid.setHeader("Column A, Column B, Column A, Column B,Column A");
    mygrid.setInitWidths("100,250,100,100,100")
    mygrid.setColAlign("right,left,right,left,right")
    mygrid.setColTypes("ro,ed,ro,ro,ro");
    mygrid.setColSorting("int,str,str,str,str");
    mygrid.init();
    mygrid.loadCSV("my.csv");

but it complaint mygrid.loadCSV is not a function, and have tried mygrid.loadCSVFile too.

Please advise! Thanks!
Answer posted by Support on Jul 08, 2008 03:15
The csv file can be loaded by
    mygrid.load("my.csv","csv");

The loadCSVFile and loadCSVString also available as separate methods, but to use them you need to include
    codebase/ext/dhtlmxgrid_nxml.js