Tree :

My dhtmlx tree version is v.2.5 build 090904



I create dynamic tree like this:

function onDblClick(id)

{

window.location = “path”+id;

}

tree = new dhtmlXTreeObject(“tree”, “100%”, “100%”, 0);

tree.setImagePath("/js/dhtmlx/imgs/");

tree.setOnDblClickHandler(onDblClick);



tree.loadXML(XmlPath);





And after one node is selected (in xml set attribute “select”) then on double click doesn’t work. Nothing happens when I click on node. And even mouse pointer isn’t change as usual when I take it on tree.


single click on highlighed event doesn’t call on double click event.


So, it is necessary to double click on the selected item to call onDblClick.


But onDblClick function reload the page - window.location = “path”+id. Is it correct ?