Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Steve on Mar 07, 2009 12:12
open dhtmlx forum
Loading TreeGrid from Web Service

I have a web service that I want to display in a tree grid. What is the best approach to use? Do you have any code samples?

Also, I tried loadXMLString but this does not seem to work.

Alternately, can I load a treegrid from a string or from a jsarray?

Answer posted by Support on Mar 09, 2009 04:24
>>Also, I tried loadXMLString but this does not seem to work.
This functionality is a part of pro version only. 
TreeGrid can be loaded from XML or JSON formats ( js-array not supported ) , both from local string or remote URL. 

There is no separate sample for loading TreeGrid from XML , except of XML format it is the same as for plain grid ( please inform if you still need a sample ) 
http://dhtmlx.com/docs/products/dhtmlxGrid/samples/initialization_loading/init_grid_xml.html?un=1236598738000
Answer posted by Support on Mar 09, 2009 04:26
>>What is the best approach to use? 
You can use custom code ( dhtmlxAjax or similar ) to fetch data from web-service, convert it to necessary format and load in grid
or 
You can construct your own data parser , to use output of web-service directly. 
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_loading_types.html#grid_art_custloadtypes