Forum Discussion
chriscc
4 years agoContributor
Hi VirginiaSus3,
I wouldn't think wExpand is a property of the tree. It is most likely a property of a treeItem. So you would want to get the item first, then get the expanded property.
It might look something like this:
var treeItem = tree["wItems"]["Item"]("Routing Rules");
var expanded = treeItem["wExpanded"];
or this:
var treeItem = tree.wItems.Item("Routing Rules");
var expanded = treeItem.wExpanded;
I hope this helps.