itemtext not working properly

I am attempting to style a node with simple HTML, like given in the same code:



echo ‘’;

echo ‘<![CDATA[Label]]>’;

echo ‘’;



However, this gives undefined as the label of the node in the tree.



What am I doing wrong? I have the latest code from the site.



Thanks!

Please try to use attached dhtmlxtree.js instead of original one

dhtmlxtree.zip (24.5 KB)

That did not work either, still no coloring showing up on the tree.

Functionality works fine with latest version of js file.
If problem still occurs for you - please send any kind of sample where it can be reconstructed.


I am including the following js files, do I need to include any others?

dhtmlxcommon.js
dhtmlxtree.js

Here are screenshots of what I am doing.  I simplified it to a few line XML file with a top node and a child I want to style.  Using the JS file attached I use tree.loadXML to open it.


<?xml version="1.0" encoding="utf-8"?>

   
       
        <![CDATA[Label]]>
       
   



tree=new dhtmlXTreeObject(“treebox”,“100%”,“100%”,0);
tree.loadXML(“<?=base_url()?>js/tree/test.xml”);






Please check full sample attached to post
If you need updated js file from pro version - please contact us directly at support@dhtmlx.com and provide your ref. number.

1203434814.zip (46.2 KB)

Whatever code you had in the source files worked great.  Thank you.