Team,
As the subject says, is there a way to expand all nodes? We're putting the tree in a scrolling div so we want the whole thing to be expanded at once.
Any ideas?
Hi there,
If you would like all parent nodes to be rendered as expanded then you can use the initialExpandDepth option or the expandedKey in the node bindings.
You can set the initialExpandDepth to the depth of the tree or larger and then all nodes at this depth or lower would render as expanded:
http://help.infragistics.com/jQuery/2014.1/ui.igtree#options:initialExpandDepth
Using the expandedKey in the node bindings populate the json you're databinding the igTree to with boolean values being true for that key:
http://help.infragistics.com/jQuery/2014.1/ui.igtree#options:bindings.expandedKey
data = {Text: "text", Expanded: true}
bindings: { expandedKey: "Expanded" }
If you want to use the API and render the nodes collapsed and expand them upon a certain interaction then use Vasya's suggestion.
I finally set the SingleBranchExpand to false. This worked well enough. Thank you for all the help!