Dynamic Loading of Sub Items in TreeGrid

Hello everyone,

i have a question regarding the dynamic loading of subitems in a treegrid. The online documentation here doesn’t say how it works. I just know that you need to do the following to enable it:

mygrid.kidsXmlFile = "php/treeGrid_dynamic2.php";

But I don’t know what

actually does. Does it provide an XML-file which describes the expanded subrows? If so, which parameters are delivered to the server side method?
Because I need to identify the row which is expanded and i need the information in the first cell of the row to get the sub-data out of a database table.

Hello
if you expand subrow, treeGrid_dynamic2.php is called with subrow id as parametr
“/php/treeGrid_dynamic2.php?id=a_0_0_1” if you click on first row in example:
http://www.dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/01_initialization_loading/01_treeGrid_dynamic.html

treeGrid_dynamic2.php returns list of subrows for row which id is used in sended parameter.

Hello,

yes, but my problem is that i don’t know how the called function works/What it exactly does ?

You can find a working examples here:
dhtmlx.com/docs/products/dht … namic.html
dhtmlx.com/docs/products/dht … _load.html

the same samples you can find in your suite package:
dhtmlxsuite/dhtmlxTreeGrid/samples/01_initialization_loading/01_treeGrid_dynamic.html
dhtmlxsuite/dhtmlxTreeGrid/samples/01_initialization_loading/03_treeGrid_load.html