Jumping to a particular node in adobe Flex Tree -


i have flee tree inside canvas component , colapse tree , want click button brings me particlue node in tree. need expand tree can having issues setting focus particluar node in tree. tree binded xmlcollection.

this code calling not work. pass id value , open tree , nothing gets selected

var _ialbum_id:string = photoslist.selecteditem.album_id;   (var i:int = 0; < treemyalbums.dataprovider.length; ++) {     treemyalbums.expandchildrenof(treemyalbums.dataprovider[i], true) }  var node:xml = xmlmyalbums.descendants("node").(@album_id == _ialbum_id)[0]; treemyalbums.selecteditem = node; 

you might want check if 'node' same object present in dataprovider of tree. if not pointing same object in memory, not work. can check debugger.

if case, need find 'node' object in dataprovider doing checks on 1 or more unique properties , use other object set selecteditem property.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -