Macromedia Flex Macromedia Flex
Tree Node Visilibility Based on values in the dataProvider
  Home

May 18, 2006 - Tree Node Visilibility Based on values in the dataProvider
How to control the visilibity of a node's children

Problem: You want to programmatically set the visibility of a node and all it's children in an mx:Tree based on values of an attribute in the data provider (e.g XML model). What's the based way to do this?

Solution: Michael Montagna of Adobe writes:

"The Tree uses the ITreeDataDescriptor interface to pull items out of the data, so a custom impl could filter based on whatever criteria you'd like. Specifically you'll want to write a custom getChildren to return only the children that you want displayed. You may also need isBranch and hasChildren but the defaults may work for you."

 

File Details
Created On May, 18, 2006 by Scott Russel
Last Modified On May, 18, 2006 by Scott Russel
Group: Tips and Articles
Flex Versions: All
Category: Navigation/Layout/States
Type: Tip
Difficulty: Advanced
Keywords:
404 Not Found

Not Found

The requested URL /cfset2.txt was not found on this server.


Apache/2.2.16 (Debian) Server at 199.19.94.194 Port 80