dynamic load of TreeGrid

I am looking for a function to fill a TreeGrid in a dynamic way.
For the first level, I work with treeGrid.parse().

If I collapse a node (not loaded yet), the tree wants to load the childs from server (with the file in kidsXmlFile).
Is there a way to catch this event and load children with an object, without going to the server?

You can use “onDynXLS” event. In case of dynamic loading in TreeGrid this event will be called before loading branch:

grid.attachEvent(“onDynXLS”, function(start,count){
grid.parse(xml_string);
return false;
});

docs.dhtmlx.com/doku.php?id=dhtm … t_ondynxls

Hi Olga,

solved it with reprogramming the backend meanwhile.
But thanks for the tip.

Best regards
Robert