Hi
I have noticed the following in dhtmlXTree.js :
when reading the checked state of an item from the xml, you have the following code:
case "CHECKED":
if(this.XMLloadingWarning)
this.setCheckList+=itemId;
else
this.setCheck(itemId,1);
The itemId-s are stacked up in this.setChecklist, with nothing separating them, and later in the program there is a split by ','
I changed this code to the following, and it works:
case "CHECKED":
if(this.XMLloadingWarning)
{
if(this.setCheckList!='')this.setCheckList+=',';
this.setCheckList+=itemId;
}
else
this.setCheck(itemId,1);
Thank you for this great script and sharing it,
Regards,
Gyula Kovats
DHTML Tree samples. dhtmlXTree - Autoloading from XML
Autoloading from XML
Tree has unlimmited level count. Each new level loaded from asp script.
fancyTree.zip( 110 k)