zTree_v3 icon indicating copy to clipboard operation
zTree_v3 copied to clipboard

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

Open BansalPooja opened this issue 11 years ago • 2 comments

@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 avatar Jun 18 '14 12:06 BansalPooja

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

BansalPooja avatar Jun 18 '14 19:06 BansalPooja

  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.

zTree avatar Jun 22 '14 12:06 zTree