When I click on an
element with sub-elements, how can I make the script expand it (like clicking
on the “+” icon?
You can
define custom onClick event and call opent item from it
tree.setOnClickHandler(function(id){
tree.openItem(id);
return true;
});
this code need to be called before XML loading.