Ok, but do not do that in the labelFunction.  Do it after assigning the
dataProvider, probably delayed with callLater().  

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of duraibalaji
Sent: Tuesday, March 17, 2009 9:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Issue with Tree in Flex

 


Thank you steve,

I'm using expandTree(); to get the first node expanded on creation of the
tree.
my requirement is to keep the first node open after creation of the tree,
there after it will be handled by the user.

thanks and Regards
DB

valdhor-3 wrote:
> 
> DB
> 
> I tried your code and saw the exact issue you describe.
> 
> Commenting the line:
> 
> //expandTree();
> 
> fixes it.
> 
> I don't use Tree but I would surmise you are double handling the expand
> functionality. From what I can see the tree component already implements
> expand and by adding your own you are causing the problem.
> 
> Someone else who uses tree more extensively may have a better explanation.
> 
> HTH.
> 
> 
> 
> Steve
> 
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
duraibalaji <duraibal...@...> wrote:
>>
>> 
>> Hi flex experts,
>> I'm using tree for a requirement, when we try to open more number of
>> nodes
>> and browse thru the the tree,
>> these are the issues that occur.
>> 1) Tree View goes either Blank or filled with one node name.
>> 2) It hides few nodes.
>> 
>> In other words, On expanding more nodes the tree view goes either blank
>> or
>> hides few nodes (sometimes the single node name appears through out the
>> tree
>> view).
>> 
>> The following is a sample tree code that i'm trying to use. You can copy
>> paste and try executing this.
>> 
>> Thanks in Advance.
>> 
>> Regards
>> DB
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.
<http://www.nabble.com/Issue-with-Tree-in-Flex-tp22538899p22558475.html>
com/Issue-with-Tree-in-Flex-tp22538899p22558475.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Reply via email to