I have a tree with dynamic loading enabled. I need to open a specific path inside the tree programmatically. The problem is that after calling open(id)
on the tree, there is no built-in way to know when the node has actually been opened.
Currently, I have two options:
- Use
window.setTimeout()
to proceed every 500ms, which is very slow and may fail if the request takes too long - Send the entire path to the server and let it return the required part of the tree in one request (Edit: This doesn’t even work since I can’t control the request sent by
open()
)
Is there another way to do this that I missed?