Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default 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 tree:
    <mm:treecontrol name='test' style='height:300px;width:500px'
    onClick='alert'here''> <mm:treenode value='rootnode1' state='expanded'
    icon='1' > <mm:treenode value='node1' state='expanded' icon='2' >
    </mm:treenode> <mm:treenode value='node3' state='expanded'
    icon='2'></mm:treenode> </mm:treenode> <mm:treenode value='rootnode2'
    state='expanded' icon='1' onClick='alert'here''> <mm:treenode
    value='node1' state='expanded' icon='2' > </mm:treenode>
    <mm:treenode value='node3' state='expanded' icon='2'></mm:treenode>
    </mm:treenode> </mm:treecontrol> It displays a very nice tree. Then I
    call: var MY_TREE = new TreeControl('test'); MY_TREE.initTreeControl();
    MY_TREE.addrow(['test3'],['test3']); My tree becomes a one column tree. What
    did I do wrong there? I want to be able to add new node, deleted selected
    node, move node up and down in a tree. Does the TreeControlClass in
    Shared/common/ provide enough handler to do these tasks or I need another
    class? Is there another control class? Thank you very much, --spring

    thaoxuanpham Guest

  2. Similar Questions and Discussions

    1. extended tree class with improved drag and drop feedback
      hello, i was working on a project recently where the client wanted the drag and drop behaviour of the tree to be improved as the tree they were...
    2. 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...
    3. 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...
    4. Implementing Control Designer Class for Composite Server Control
      I created a custom composite server control with 2 literals and 1 text box. The control displays fine in internet explorer, but doesnt display...
    5. Class::Tree V 1.24
      The pure Perl module Class::Tree V 1.24 is available immediately from CPAN, and from http://savage.net.au/Perl-modules.html. On-line docs, and a...
  3. #2

    Default Re: tree control class

    I've primarily used the innerHTML attribute to rebuild the tree. That's worked for me fairly well. I know it's not the most elegant solution, but it's pretty simple. Have you tried doing that?

    Steve
    Steve 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