jquery - .getParentNode() is not working in case of tree with more than 1k nodes -
i trying add together search functionality tree displayed via ztree plugin.
if search successful should expand parent nodes , highlight nodes.
i using core-3.5.js version of ztree.
to implement using next code:
{ ztree.getnodesbyparamfuzzy("name", value); ztree.expandnode(nodelist[i].getparentnode(), true, true, true); } this works when tree size <1000 nodes.
but big # of nodes (>1k) fails parent node using getparentnode() - gets stuck, may because of big info set.
i had same problem ztree big amount of data, around 10k, , browser doesnt response , freeze, guess plugin not prepared load big amount of info 1 time time.
i used lazy load each subnode
jquery jquery-plugins ztree
No comments:
Post a Comment