I suspect there is an event issue. Do not use the .attributes method of
updating the tree provider. Instead use the tree data provider API.
myTreeNode.setProperty("label","<new text>",true);
Using the API ensures that the events to update the visual display get
fired.
Tracy
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pilby1
Sent: Tuesday, May 03, 2005 12:58 PM
To: [email protected]
Subject: [flexcoders] Re: How to get past this Tree bug
By the way, after I change the label attribute, I've already tried:
tree.invalidate();
tree.invalidateProperties();
but the above don't work either. Thanks.
--- In [email protected], "pilby1" <[EMAIL PROTECTED]> wrote:
> My application requires me to modify the text/label of tree nodes.
>
> In my tree's change event, I am able to do this:
>
> event.target.attributes.label = "<new text>";
>
> and the text in the tree node would update accordingly, as expected.
>
> However, I noticed that if I were to try to change the label from
> another function in this way:
>
> tree.attributes.label = "<new text>";
>
> then the text of the node will *NOT* change UNTIL I hover my mouse
> over it and hover out. In short, it would change only in response
to
> the mouseOut event for that node.
>
> How can I get past this? I can't update the label of the node until
I
> get a "success" response from my servlet. Because of this, I
> necessarily have to change the label of the node from within my
> httpService result handler, but then I get the above-mentioned
> behaviour.
>
> Any help on this would be greatly appreciated.
Yahoo! Groups Links
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/