we written onNodeDragging event at client side, while draging the node it will fires automatically with out interruption.
here we paste the code :
function onNodeDragging(sender, args) {
if (args._sourceNodes[0]._attributes._data.IsPrerequisiteQuestion == "True" || args._sourceNodes[0]._attributes._data.IsPrerequisiteAttribute == "True") {
args.set_cancel(true);
args.IsValid =false;
return false;
}
else {
args.set_cancel(false);
}
}
here we paste the code :
function onNodeDragging(sender, args) {
if (args._sourceNodes[0]._attributes._data.IsPrerequisiteQuestion == "True" || args._sourceNodes[0]._attributes._data.IsPrerequisiteAttribute == "True") {
args.set_cancel(true);
args.IsValid =false;
return false;
}
else {
args.set_cancel(false);
}
}