Hi,
I’m using your pro version of dhtmlxtree. I’m using a dynamic XML for the data on my tree, and i have a button where it updates the image of the tree folderClosed.gif to my own image. and I want to reload the tree after updating it. I tried smartRefreshItem, smartRefreshBranch, refreshItem and I also tried to reload the XML again with tree.loadXML() but it didn’t refresh or request a new xml data from my server. any idea how?
Thanks.
Leonard
The issue can be caused by XML caching ( pretty common in case of IE )
You can try to resolve issue by using
tree.preventIECaching(true)
this command will force adding of random elements to URL, which must prevent caching.
Also if you want to fully reload tree you can use
tree.deleteChildItems(0); //necessary to clear old structure
tree.loadXML(url);
i also tried: tree.setItemImage(tree.getSelectedItemId(),“xpshare.gif”,“xpshare.gif”)
and it didnt work. i put tree.preventIECaching(true) before setItemImage() but still not working.
This is a really strange issue, because the same code used in online sample
dhtmlx.com/docs/products/dhtmlxT … 9482867000
and all works fine.