Disable drag n drop for Units View

I’d like to know how can i disable drag n drop for units view?

You can use something similar to the next

scheduler.config.attachEvent("onBeforeDrag", function(){ if (scheduler.mode != "units") return true; return false; })