Professional Web Applications Themes

Invisible Tree Nodes - Macromedia Flex General Discussion

Is there a way to make certain tree nodes (leaf / item) invisible? There are certain XML items in the XMLList behind the Flex tree I do not want to show up in the actual Flex tree. How would I do this?...

  1. #1

    Default Invisible Tree Nodes

    Is there a way to make certain tree nodes (leaf / item) invisible? There are
    certain XML items in the XMLList behind the Flex tree I do not want to show up
    in the actual Flex tree. How would I do this?

    Fox9 Guest

  2. #2

    Default Re: Invisible Tree Nodes

    Two ways:
    1) preprocess the dataProvider to remove the unwanted nodes. This is probably
    the easiest. Brain-dead easy if it is a single level XMLList. Recursive
    processing is harder.

    2) Create a custom TreeItemDataDescriptor. I have not done this but you will
    find info in the docs.

    Tracy

    ntsiii Guest

  3. #3

    Default Re: Invisible Tree Nodes

    Thank you but neither of those ways work. I do not want remove nodes from the
    XML the tree uses. I just want to have certain nodes not show up in the tree.

    I can do this using filterFunction but filterFunction only works on the root
    level.

    Fox9 Guest

  4. #4

    Default Re: Invisible Tree Nodes

    You did not look closely enough at TreeItemDataDescriptor.

    And preprocessing the xml manually will work if you can't solve the filter
    issue. You can kep a copy or the un modified aml if you need it.

    Tracy

    ntsiii Guest

  5. #5

    Default Re: Invisible Tree Nodes

    When say TreeItemDataDescriptor you mean ITreeDataDescriptor right?

    There is no TreeItemDataDescriptor class or interface that I can find in
    ActionScript 3.

    Back to the original problem, have can you do this with a custom
    ITreeDataDescriptor? I wrote my own and was successful as modifying the XML
    but I had the same problem the only way I could get a tree node not to show up
    in the tree was delete the XML node and that is not what I want.

    Fox9 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. How to set tree nodes to be visible or invisible?
    By logicmason in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: October 14th, 09:39 AM
  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