Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by C. Bernstein on Jun 08, 2009 11:47
open dhtmlx forum
Example xml for TreeGrid

Can you please post a thorough example of an xml file that could be used to load a tree grid at least four levels deep?

Thank you very much.
Answer posted by dhxSupport on Jun 09, 2009 00:28
Answer posted by C. Bernstein on Jun 09, 2009 06:47

The documentation for the treeGrid states:

"Script initialization is the same as http://dhtmlx.com/docs/products/dhtmlxGrid/doc/guide.html#init">for grid. All you need is to decide what column should have tree structure and use "tree" http://dhtmlx.com/docs/products/dhtmlxGrid/doc/guide.html#excell_use">eXcell for it."  I don't see any examples or explanation at the destination link.  I tried using "tree" as the cell type but it gave me an error that it's not a valid type.  Could you please direct me to an example of an initialization of a tree grid?  Right now, my code is not displaying the child rows (it's only displaying as a grid, not a tree grid).

Thanks so much.

Answer posted by Alex (support) on Jun 09, 2009 07:09

Hello,

treegrid is a separate component and these is only PRO edition of this component.

If you obtain this edition, you can find treegrid sample in the package:

dhtmlxTreeGrid/samples/initialization_loading/treeGrid_init.html

the example of the xml: dhtmlxTreeGrid/samples/initialization_loading/test_list_1.xml

On our website: http://dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/initialization_loading/treeGrid_init.html and http://dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/initialization_loading/test_list_1.xml