Specific Item undragable

Hi,

Is it possible to set an item undragable ?

I want a tree with items dragable (with enableDragAndDrop(true)), and not dragable for some specific items.

I tried to respond to my problem with this code, but it didn’t work :

var dhxTree=new dhtmlXTreeObject(document.getElementById('treebox1'),"100%","100%",0);
dhxTree.setSkin('dhx_skyblue');
dhxTree.setImagePath("codebase/imgs/csh_bluebooks/");
//try 1
dhxTree.enableDragAndDrop("temporary-disabled");
//try 2
//dhxTree.enableDragAndDrop(true);
dhxTree.loadJSONObject({"id":"0", "item":[{ "id":"1_1",  "text":"test100000", "child":"1" }
		,{ "id":"test10000",  "text":"test10000", "child":"1" }
		,{ "id":"test1000",  "text":"test1000", "child":"1" }
		,{ "id":"test100",  "text":"test100", "child":"1" }
		,{ "id":"test10",  "text":"test10", "child":"1" }
		,{ "id":"New2",  "open":"0",  "text":"New2", "item":[
			{ "id":"New",  "select":"0", "text":"New"}
		]}
		,{ "id":"New1",  "text":"New1"}
]});
dhxTree.attachEvent("onClick", function(id){
  if (id == "New1") {
    //try 1
    dhxTree.enableDragAndDrop(true);
    //try 2
    //dhxTree.enableDragAndDrop(false);
  }//else dhxTree.enableDragAndDrop(true);
});

Thanks.

I finally solve my problem, on this line

dhxTree.enableDragAndDrop("temporary-disabled");

it’s “temporary_disabled” and not “temporary-disabled”.

Sorry.