Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lexa on Dec 10, 2009 07:19
open dhtmlx forum
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.
Answer posted by Alex (support) on Dec 10, 2009 07:52

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 ?