Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David on Feb 17, 2009 01:09
open dhtmlx forum
Grid - loading data

All the examples that I see load data using load_data(''file_name",type). This not not help since I load data from json using prototype AJAX. Once I load the data using AJAX need to transfrom the data into a format that can be used by the grid.

So...how do I point to a json object load on the page? The API docs are not clear.

Thanks,

David
Answer posted by dhxSupport on Feb 17, 2009 01:23

To load data from JSON format you can use:

grid.load(url,"json") or grid.parse(url,"json")

Please see more infomation here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Loading_data_in_grid.html#grid_art_loadingdata

And sample here http://dhtmlx.com/docs/products/dhtmlxGrid/samples/initialization_loading/init_grid_json.html