Categories | Question details Back To List | ||
No Data Is there anything wrong with this code. I get the table but no data. The cvs is a simple 5 field comma delimited file. <html> <head> <script src="dhtmlxcommon.js" type="text/javascript"></script> <script src="dhtmlxgrid.js" type="text/javascript"></script> <script src="dhtmlxgridcell.js" type="text/javascript"></script> <link rel="STYLESHEET" type="text/css" href="dhtmlxgrid.css"> </head> <body> <div id="gridbox" width="100%" height="250px" style="background-color:white;overflow:hidden"></div> <script> mygrid = new dhtmlXGridObject('gridbox'); mygrid.setHeader("1,2,3,4,5"); mygrid.setInitWidths("150,120,150,150,200") mygrid.setColAlign("right,left,left,right,center") mygrid.setColTypes("txt,txt,txt,txt,txt"); mygrid.init(); mygrid.loadCSV("Varsity2.csv");//load from csv using default delimiter, which is "," </script> </body> </html> Answer posted by dhxSupport on May 28, 2009 07:28 Methosd loadCSV() is availible only at PRO version. To use that method you should to include file dhtmlxgrid_nxml.js. |