editedItemPosition is supposed to be the correct answer

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Karen
Sent: Friday, October 19, 2007 8:39 AM
To: [email protected]
Subject: [flexcoders] Re: Tree with edit

 

Here are the steps I'm using for something similar:

In the click event handler for your "edit" button
treeReference.editable = true;

treeReference.dispatchEvent(new ListEvent(
ListEvent.ITEM_EDIT_BEGINNING, false, false, 0, indexOfItemToEdit) );

On your tree set
itemEditEnd="editEnd(event)"

In editEnd
treeReference.editable=false;

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "nocturnal_world"
<[EMAIL PROTECTED]> wrote:
>
> Hello, 
> 
> I just joined this group hoping to find an answer to this flex project
> I am working on.
> 
> Basically what I need to do is, I have a tree, it has a folder and
> some items in it. Then I have this button called edit.
> 
> What I want to do is, if I select an item on the tree, then I click on
> the edit button, the selected item on the tree becomes editable.
> 
> I know it sounds simple, but I can't do it. I have been trying to
> solve this on my own even though I have no proper training on flex.
> 
> Hope you guys can point me to the right direction. 
> 
> Thanks in advance.
>

 

Reply via email to