Can i disable drag based on a condition. The entire view should not support drag, drop. For instance when not online i do not want my items to be dragged and dropped.
Hello,
You can set onBeforeDrag and onBeforeDrop event handlers.
If onBeforeDrag handler returns false, tree items won’t be dragged:
$$("yourTree").attachEvent("onBeforeDrag",function(context,e){
if(...){
return false;
}
});
Same approach can be used to disable drop into a view via the onBeforeDrop handler.