Multiline Problem

I am trying to initialize a tree with multiline like this

<div id="treeboxbox_tree" setImagePath="dhtmlxTree/codebase/imgs/" enableTreeLines="false" enableMultiLineItems="true" style="width:250px;">

ul list

<script>
    var myTree = dhtmlXTreeFromHTML("treeboxbox_tree"); // for script conversion
</script>

But it’s not working - I get no menu and firebug is showing an error on line 9 of dhtmlxtree_start.js

c[m] is undefined

Works fine without the two enable settings included.

What am I doing wrong. Using standard version of tree for trial.

It works ok with just the enableTreeLines=“false” too.

I made a sample - it works with the next code:

[code]

Initialize from HTML
Initilize from list
  • All the Flowers Are Dying Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    • The Burglar on the Prowl Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      • The Plot Thickens Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    • Grifter's Game Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    • The Burglar Who Thought He Was Bogart Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
[/code] See the attachment.

Why doesn’t the menu in your sample have any images, etc. I can get it to work like this too but even with css included the menu is not rendering. It’s just a list.

Sorry, my fault…
Replace line 14:

But it is not very nicelyб because icons are passed vertical in the middle ...

Now I get the same error I got before (see attachment). Here is my code copied from yours

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
       <head>
          <title>Initialize from HTML</title>
            <script  src="dhtmlxTree/codebase/dhtmlxcommon.js"></script>
            <script  src="dhtmlxTree/codebase/dhtmlxtree.js"></script>
            <script  src="dhtmlxTree/codebase/ext/dhtmlxtree_start.js"></script>
            <link rel="stylesheet" type="text/css" href="dhtmlxTree/codebase/dhtmlxtree.css">
       </head>
       <body >
       <script>
          dhtmlx.skin = "dhx_skyblue"
       </script>
    <div class="h3">Initilize from list</div>
       <div id="treeboxbox_tree" setImagePath="dhtmlxTree/codebase/imgs/csh_bluebooks/" class="dhtmlxTree" enableMultiLineItems="200px" enableTreeLines=false style="width:250px; height:218px; background-color:#f5f5f5;border :1px solid Silver; overflow: auto">
          <ul>
               <li>All the Flowers Are Dying Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                  <ul>
                     <li>The Burglar on the Prowl Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                             <ul>
                                 <li>The Plot Thickens Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                             </ul>
                     </li>
                     <li>Grifter's Game Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                     <li>The Burglar Who Thought He Was Bogart Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                  </ul>
               </li>
          </ul>
       </div>
       </body>
    </html>


Now I see why - not available in standard edition - doh

Yes, you are right! enableMultiLineItems() is working just in professional edition.