Reputation: 11
This is the code im using...
dp = CategoryParser.createDataProvider( Application.application.categoriesmanager.categoryBaseList);
var xList:XMLList = dp..category.(hasOwnProperty("@categoryid") && @categoryid == 1491);
categoryTree.expandItem(xList, true);
Upvotes: 1
Views: 1025
Reputation: 2216
There are tow ways:
tree.openItems = xList;
details here http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/
Or in other case this one
Upvotes: 1