Hi Tracy,

yes, you are right,
I 've removed it and calling the expandTree from a changewatcher,
the function is fine and working as per requirement.
i don't see any issues in tree now.

Thanks for all giving excellent advices

regards
DB


Tracy Spratt wrote:
> 
> Yes, a label function should only build the label string, not do anything
> else, especially manipulate the visual elements of the control it is being
> used to render.  A label function gets called for every visible node in
> the
> tree, which changes when you scroll, open a node, etc.  No wonder you
> confused the poor tree!
> 
>  
> 
> What is the goal of that line?
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _____  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of valdhor
> Sent: Monday, March 16, 2009 12:15 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Issue with Tree in Flex
> 
>  
> 
> 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.com/Issue-with-Tree-in-Flex-tp22538899p22571253.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to