Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vaidehi on Oct 15, 2008 03:35
open dhtmlx forum
Grid: about loading a data


Hello Sir
My grid is working properly but i want to load a data from a MYSQL database in a grid . for that i wrote a servlet to auto generate a xml file and that xml file is used in grid but sir i am facing some problem in it. as i am working on J2EE Struts project
is there any other way to load a data in grid other than xml if yes please tell me how?????

I am waiting for your reply.
Answer posted by Support on Oct 15, 2008 04:53
Grid is client side component , so it can't be connected to MySQL directly and will need some kind of server side script in any case.
Starting from version 1.6 grid can load data in next formats
 - xml
 - json
 - jsarray
 - csv

for all formats, data can be loaded from remote url, or from page|string in the same page. 
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Loading_data_in_grid.html#grid_art_loadingdata