if (str.match(txt) != null) //Compare with the search term
{
node.highlight();
return;
}
else {
node.unhighlight();
if (node._hasChildren()) {
for (i = 0; i < node._getChildren().get_count(); i++) {
search(node._children._array[i], txt);
}
}
else
return;
}
}
TreeView nodes that match the search string are correctly highlighted but when I press "Enter" the execution not calls my js function instead the root node of the treeview is selected.