In my webapp I am using dynatree to display a tree of data which can be edited using drag&drop (for hierarchy changes) and through custom links (to change the status of an item). Every change is saved into the database directly after dropping or clicking the link.
To prevent the tree and it's backend model coming out of sync due to whichever circumstances, I would like to update the tree completely after each modification.
I can do it like this: how to reload/refresh/reinit DynaTree?. But I have to destroy and re-initialize the complete tree in order to do this and all nodes collapse while doing so.
I'd love a refresh option iterating over all tree items, throwing out items that are no longer there, adding new items, or changing title/icon/data of modified icons, but I cannot find anything like this in the documentation.
Is there any trick to achieve this? Maybe a hidden feature, or a workaround?
Thanks for inspiration, Peter