I’m using jqTree to convert json data to an easily viewable tree. I want to load the tree nodes one level at a time, so page loading will be faster and the nodes will be accessed only when needed. However, when I send the nodes at, say, depth 0, to jqTree, the expand icon doesn’t appear.
How can I implement this tree without sending the whole batch of data at once?
The dev branch of jqtree contains a new feature for loading a subtree. The function loadData now accepts a parent_node parameter.
$tree.tree('loadData', data, parent_node);
Also see https://github.com/mbraak/jqTree/issues/10