dhtmlxScheduler Unit view Disable Drag Feature


I was trying to disable the drag feature of dhtmlxScheduler. And for that you can consider the following sample example.


I just added the below piece of code inside the init method.

         [code]  scheduler.attachEvent("onBeforeDrag", function(id){
	return false;

Problem solved. Now the drag is disabled.
But when I’m double clicking on a black event to create some event, I got the below error -

TypeError: can't convert undefined to object

Can you please , let me know why I’m getting the error and what is the solution for this.

you can disable drag with scheduler configuration, that would be simpler

	scheduler.config.drag_resize = false;
	scheduler.config.drag_move = false;
	scheduler.config.drag_create = false;