DHTMLx - Displaying folder structure from server side

Hello,
We are trying to get the save as dialog box with folders from the server side . With recursion.php we are able to get the list of folders , but how can we represent them in DHTMLx to navigate through the folders.
Thanks,

You can use treegrid component ( or tree ) and use

treegrid.load(“recursion.php”)

where recursion.php must return xml ( or json ) in treegrid’s format

You may try to use dhtmlxTreeGrid component:
www.dhtmlx.com/docs/products/dhtmlxTree … namic.html

Or a dhtmlxTree:
dhtmlx.com/docs/products/dht … tions.html