Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by siddhartha Gupta on Sep 04, 2008 01:16
open dhtmlx forum
How should i use to load data using java Script?

Answer posted by Support on Sep 04, 2008 01:34
You need to 
a) create object
b) define header structure
c) load data from any possible datasource

 mygrid = new dhtmlXGridObject('gridbox');

 mygrid.setHeader("Column A, Column B");
 mygrid.setInitWidths("100,250")
 mygrid.init();

 mygrid.loadXML("grid.xml");