Hello DHX team,
initially I load the first level of tree by an XML. Every further node downstream should be loaded by different XML files. But it is only possible to set setXMLAutoLoading path at the start. How can I change the path dynamically depending on the id of the node in the tree clicked.
Best regards
ebel
In case of pro version, you can define custom path for any node
mytree.setXMLAutoLoadingBehaviour(“function”)
mytree.setXMLAutoLoading (function(id){
// here based on ID you need to load some XML
mytree.loadXML( my_name_by_id_func(id) );
});
By the way - the common approach is to use some server side script as path in setXMLAutoLoading , which will output different data based on incoming ID.