Posted 12 November 2017, 9:16 pm EST
Hi
We are using the Wijmo Angular Tree view component in our product. (Currently version 5.20172.359)
We have a treestructure that potentially can be quite large, and deep.
The tree is in current mode lazy loading childnodes on expand, and the api that delivers data starts by delivering the root nodes only. This works fine.
What are requested is that we are able to show the tree structure with a default selected item - and thus the tree expanded to this level.
The API part of delivering a tree json object, with all nodes down to requested node included is working. Wijmo tree accepts this json - and does not lazyload if you expand on the path to selected item.
What I now need todo, is to be able to have the nodes on the path to the requested item to be default expanded - and to have the treeview fire a selectedItemChanged event on the requested node.
How would I do this?
I can’t find documentation to the angular treeview component on how to set expanded state of a given node - and neither something to programmatically set selected node.
Closed I can come is a reference here (http://demos.wijmo.com/5/angular/TreeViewIntro/TreeViewIntro/) to collapsedMemberPath - but that property doesn’t seem to exist (yet or anymore?) if I look here: http://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.nav.TreeView.Class.html
I hope someone is able to point me in the right direction on how to solve this task.
If in need for more information - please let me know.
Best regards
/Anders