How I can get node by key?
I try this
var node = null, nodes = $find('AmalgamationTree').getNodes(); for (var i = 0; i < nodes.get_length(); i++) { if (nodes.getNode(i).get_key() == number) { node = nodes.getNode(i); index = i; break; } }
Hello Anton,
Your code should be working. Just note that if you are using load on demand, this will iterate through the nodes that are loaded at that time.
Hi Anton,
If you need further assistance with the matter, please let me know.