--- In flexcoders@yahoogroups.com, "Clarke Bishop" <[EMAIL PROTECTED]> 
wrote:
>
> I've just finished moving my app from Flex2 b1 to Flex2 b2, but 
I've still
> got one problem I can't solve.
> 
> I'm trying to set the focus to a specific branch of a tree 
component. Here's
> the function that worked in Beta 1:
> 
>               private function initTree():void {
>                       var nodeRef:Object = 
treeJobs.getNodeDisplayedAt(6);
>                       treeJobs.setIsOpen(nodeRef, true);
>                       treeJobs.setFocusedCell(nodeRef);
>               }
> 
> But Beta 2 doesn't like the setFocusedCell() method. Is there a 
replacement
> for setFocusedCell in Beta 2, or is there a better way to do this?
> 
> Thanks Much!
> 
>    Clarke
>


Hi Clarke.

Try the setEditedItemPosition function. This function works for the 
datagrid when you want to set focus to a particular datagrid cell. 
Guess it should be there for the Tree component as well.

Regards,
Vaishali.









--
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/
 



Reply via email to