[flexcoders] Flex Tree selectedItem is null issue

Saturday, December 31, 2011

 

This works, and tree.selectedItem is not null after assignment:

var nodeToSelect:XML = this.tree.dataProvider.getItemAt(0) as XML;

this.tree.expandItem(nodeToSelect, true);
this.tree.selectedItem = nodeToSelect; // NOT NULL

But this doesn't, when the tree 'selectedItem' is set to an xml sub node:

var node:XML = this.tree.dataProvider.getItemAt(0) as XML;
var nodeToSelect:XML = node.children()[0]; // valid value

this.tree.expandItem(n2, true);
this.tree.selectedItem = nodeToSelect; // NULL

How can I fix this?

Cheers.

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

[Windows Azure] Book: Getting good with Javascript

 


__,_._,___

[Developers_For_Ever] ITSoft java test

Friday, December 30, 2011

 

Al-Salamo 3alekom

ana 3andy sadek 3ando java test bokra fe its lw 7ad y2der y2oly yzaakeer eh 2w el test 3amal azay yareeeet yfednyyyyy bsor3aa 3ashan el test bokra

__._,_.___
Recent Activity:
Kindly visit my Blog http://amrsaafan.blogspot.com
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___