--- In [email protected], "moyosaned" <[EMAIL PROTECTED]>
wrote:
>
> I want to add an node to the Tree and than givethe node label
focus,
> sso the user can edit the label..without clicking first
>
> Anybody..?
>
I got it
first set the selectedIndex
example:
tree.selectedIndex = 1;
_root.doLater(this, "setFocus");
public function setFocus(){
var tree = this.view.favourites_tree;
tree.setFocusedCell({itemIndex:tree.selectedIndex, columnIndex:0},
true);
}
use doLater because cell loses focus if you use "setFocusedCell"
direct after "selectedIndex"!!!
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/