Find-as-you-type in a Tree control

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Find-as-you-type in a Tree control

    I'm a bit new to Flex (but not to Flash or ActionScript), and I'm building an
    app that displays a tree control to the user. This tree corresponds to a
    rather immense directory structure, and I'd like to allow users that are
    looking for a specific path to just click the tree, type in the path (ie:
    'home/evan/htdocs/scripts') and have it expand the tree to, and select, the
    appropriate tree node.

    My issue is, I have no clue how to even begin doing this. I know I could
    probably trap keyboard events, but i have no idea how to efficiently search
    through a tree instance. Has anyone ever done this before?

    Evan_K Guest

  2. Similar Questions and Discussions

    1. Tree control problem
      hi there, i have xml data around one thousand file in the xml when i try to binding to the tree it come up with error , flexbuidler javac...
    2. [type Function] XML and tree Component
      i have the same problem, populating the tree component, i already tried removing the root node, ignore whites but i still get the same result , and...
    3. tree control class
      Hi everyone, I use TreeControlClass in my extension to manipulate the data tree, but it doesn't work for me. Did I do something wrong? My test...
    4. Tree View Control and User Control
      I created a web form, created a treeview, its parent and child nodes and it works fine. I re-created the treeview as a user control, dumped the...
    5. Creating a Dynamic Menu (Tree Hierarchy type)
      Hi, I am trying to source an XTRA or a tut on how to build a dynamic tree menu. A buddy of mine built one using the TreeView xTRA but I see that...
  3. #2

    Default Re: Find-as-you-type in a Tree control

    It is pretty easy to find a node based on some unique id in the item and expand
    the parent path above it. I have a simple example of that on [url]www.cflex.net[/url].

    But it sounds like you want to navigate by path. Depending that could be a
    bit of a challenge, but I don't think unreasonable. Some functional decisions
    to make, such as do you automatically fill in the filter box if a child node
    uniquely matches the currently entered letters.

    Though in truth, one of the benefits of a tree is graphical navigation. Id
    rather navigate normally through the tree with three clicks and maybe a scroll
    or two than type in 'home/evan/htdocs/scripts'

    Tracy

    ntsiii Guest

Posting Permissions

  • You may not post new threads
  • You may 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