Problem with leaf nodes showing [+] icon

My tree shows the [+] icon even for leaf nodes (nodes that have no children). However, when I click on the [+] icon to expand the node, the icon changes to the ‘leaf’ icon, and the [+] icon disappears.

The samples on the website do not show this behaviour - leaf nodes appear without the [+] icon, and they have the ‘leaf’ icon.

I am using the tree in conjunction with a MySQL table, which has the structure: id, name, parent.

Everything else is working OK, including edits, updates, inserts, deletes and drag and drop within the tree.

Such a behaviour may occur if autoloading is enabled and you have set child=“1” attribute for the nodes. Make sure that setXMLAutoLoading method isn’t called and all xml attributes are correct.

Thanks Alexandra - I had a reference to tree.setXMLAutoLoading() - removed it and it is perfect now!

I have the same issue as the OP, however I’m pulling data from multiple tables and so I have tree.setXMLAutoLoading("$my_connector");.

Is there any way around this? Perhaps another method of loading the tables manually (not using multitable connector)? If there’s an example in the docs or samples, I missed it.

Thanks,
Chris

I figured it out. Code looks like this now: tree.setXMLAutoLoading("$connector_vans_php"); tree.loadXML("$connector_vans_php", function(){ tree.openAllItems(0); });