Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pramod on Feb 07, 2008 22:32
open dhtmlx forum
DHTML Tree

DHTML Tree nodes are not displayed if node name has & special character ie

if my node name is testfolder it displays

but if node name is test&Folder not & in the folder name

the node nme is not displayed

How to overcome this
Answer posted by Support on Feb 08, 2008 01:18
The tree component treats incoming data as HTML., and in HTML sequences started from & treated as special chars.  
To solve problem you can escape it
    grid.setItemText(id,"test&Folder");
or, in case of xml
    <item text="test&amp&amp;Folder" id="some" />
or
    <item id="some" ><itemtext><![CDATA[
        test&amp;Folder
    ]]></itemtext></item>