zTree / zTree_v3

jQuery Tree Plugin
MIT License
4.1k stars 1.28k forks source link

getParentNode is not working in case of tree with more than 1k nodes. #57

Open BansalPooja opened 10 years ago

BansalPooja commented 10 years ago

@zTree : I am trying to add search functionality, and I want to modify it like : If the search is successful then it should expand all its parent nodes and highlight the nodes. To implement it I am using : zTree.getNodesByParamFuzzy("name", value); zTree.expandNode(nodeList[i].getParentNode(), true, true, true); It fails to get parent node using getParentNode(), may be because of large data set. There are no console error, it just get stuck while finding its parent node. Can you please provide the solution?

BansalPooja commented 10 years ago

@zTree Can anyone please help on this issue? It's pretty urgent for me to fix it.

zTree commented 10 years ago
  1. expandNode method will auto expand the node's parent node.
  2. the root node has not parent node.

if you still aren't resolve the problem, please tell me. Or share your code to me.