Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Scott Bailey on Feb 10, 2009 03:27
open dhtmlx forum
DeleteItem in tree not working

Hello,

I have an odd problem with the deleteItem not working in a tree. I have the following code.

asset_tree.deleteItem(nodeid, false);

nodeid is created in the following way

var nodeid="ass"+helloMessage2[1];

if I do alert(nodeid) I get the correct nodeid.
If I do
var temp=asset_tree.getAllChildless();
alert(temp);

I can see that the nodeid does exist within the tree. However it not delete by the line above. I get no error messages, the node is just left there?

Can yuo see anything I am doing wrong?

Many thanks
Scott
Answer posted by Alex (support) on Feb 10, 2009 07:20

Please, check that all ids are unique.

If the preoblem still persits, please provide the code where it can be recreated.