how to add new Item to dhtmlxFolder ?

Hi,



I want to add a new folder (item) to dhtmlxFolder div after successfully loading XML. how can i do that?

I come to know that there is method named addItem=function (id, itemObj, pos). So what parameter value i have to supply.



Thanks,


Hello,


unfortunately, folders doesn’t provide public method to add separate item.


You can use loadJSON(json_object) or loadXMLString(xml_string) method. For example:


h = folders.attachEvent(“onXLE”,function(){
folders.detachEvent(h)
folders.loadXMLString("");

});


folders.loadXML(…)