dhtmlxScheduler Unit view Disable Drag Feature

Hi,

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

samples/03_extensions/02_units_view.html

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

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

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.

Hi,
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;