Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by CPS on Mar 31, 2008 10:57
open dhtmlx forum
itemtext tree undefined

I'm using the tree with the following XML loading

<?xml version="1.0" encoding="iso-8859-1"?>
<tree id="0" radio="1">
<item text="Users" id="users" open="1" call="1" select="1">
<item id="1" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"><itemtext>Hospital</itemtext>
<item id="1_" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"><itemtext>Medical Center</itemtext>
<item id="1_2_415"><itemtext>Doctor A</itemtext></item>
</item>
</item>
</item>    
</tree>

And all I get are undefined for all the itemtext values. If I put it in <item id="1" text="This is text"> it shows the text. Of course this is phase 1, I really need to add HTML to the output.

Thank you.
Answer posted by Support on Apr 01, 2008 10:42
Are you using pro or standard edition of tree?
Settings value through itemtext sub tag available only in pro version.
Basically, you can set html through text attribute as well, it just require escaping

<item text="Users &lt;img src='some.gif'&gt; " id="users" open="1" call="1" select="1">

If you are using pro edition - please provide used version|build number