Professional Web Applications Themes

How to set tree nodes to be visible or invisible? - Macromedia Flex General Discussion

Hi All, I'm trying to use a DOM Node as the data provider for a tree. This DOM Node contains we'll say a folder hierarchy as well as file leaf nodes. What I'm trying to achieve is to display only the folders in the tree, yet still have it contain the file leaf nodes so that I can populate a grid with a folder's child nodes (files) when a given folder is selected. I'm thinking I'll have to create my own XMLTreeDataProvider or CellRenderer which will somehow do this for me... anybody got any ideas? Thanks....

  1. #1

    Default How to set tree nodes to be visible or invisible?

    Hi All,

    I'm trying to use a DOM Node as the data provider for a tree. This DOM Node
    contains we'll say a folder hierarchy as well as file leaf nodes. What I'm
    trying to achieve is to display only the folders in the tree, yet still have it
    contain the file leaf nodes so that I can populate a grid with a folder's child
    nodes (files) when a given folder is selected.

    I'm thinking I'll have to create my own XMLTreeDataProvider or CellRenderer
    which will somehow do this for me... anybody got any ideas?

    Thanks.

    logicmason Guest

  2. #2

    Default Re: How to set tree nodes to be visible or invisible?

    While you can't make the members of Tree invisible, you can made a branch
    without leaves (kind of like autum ;-).

    When you create a node, either do: tree.setIsBranch(node,true) or in the XML
    data set the attribute: isBranch="true" and you'll get the folder icon without
    children.

    peterent Guest

  3. #3

    Default Re: How to set tree nodes to be visible or invisible?

    Thanks Peter!
    logicmason Guest

Similar Threads

  1. how to set nodes visible and invisible
    By Unregistered in forum ASP.NET
    Replies: 4
    Last Post: September 26th, 02:23 AM
  2. Question how to set nodes visible and invisible
    By Unregistered in forum Brainstorming Area
    Replies: 0
    Last Post: August 26th, 05:25 AM
  3. Invisible Tree Nodes
    By Fox9 in forum Macromedia Flex General Discussion
    Replies: 4
    Last Post: May 16th, 06:49 PM
  4. Tree Nodes from Array?
    By Maxdutro in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: March 1st, 11:18 PM
  5. Tree - checkbox nodes
    By _der_step_ webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 0
    Last Post: December 1st, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139