如何展开 Flex Tree 控件中的特定节点
这是我使用的代码...
dp = CategoryParser.createDataProvider( Application.application.categoriesmanager.categoryBaseList);
var xList:XMLList = dp..category.(hasOwnProperty("@categoryid") && @categoryid == 1491);
categoryTree.expandItem(xList, true);
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);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有两种方法:
tree.openItems = xList;
详细信息请参见http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control -using-the-openitems-property/或者在其他情况下这个
http://blog.flexexamples.com/2007/12/02/expanding-and-collapsing-flex-tree-nodes-使用扩展项和扩展子项方法/
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
http://blog.flexexamples.com/2007/12/02/expanding-and-collapsing-flex-tree-nodes-using-the-expanditem-and-expandchildrenof-methods/