Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Hubertus on Nov 08, 2007 02:33
open dhtmlx forum
itemtext does not work properly

itemtext gives me 'undefined' in all the objects in my tree.

I used the folowing xml:

<tree id="0">
    <item id="1">
        <itemtext><![CDATA[Home]]></itemtext>
        <userdata name="boomlink">?id=234</userdata>
        <item id="2">
            <itemtext><![CDATA[Informatie]]></itemtext>
            <userdata name="boomlink">?id=234</userdata>
            <item id="3">
                <itemtext><![CDATA[Bier]]></itemtext>
                <userdata name="boomlink">?id=234</userdata>
            </item>
            <item id="4">
                <itemtext><![CDATA[Wijn]]></itemtext>
                <userdata name="boomlink">?id=234</userdata>
            </item>
        </item>
    </item>
</tree>

What could be the problem?
Answer posted on Nov 08, 2007 05:08
In which browser problem occurs for you?
I created the sample with provided xml and it works correctly in all main browser
Please beware that itemtext tag not supported by old versions of dhtmlxTree ( 1.3 or earlier ) - you need "text" attribute with them.

If necessary - please contact us at support@dhtmlx.com - I will send you working sample with provided XML