I'm looking some config options on the scheduler

I’ve been reading through the docs, but can’t seem to find how to configure the following options on the scheduler…

1.) I don’t want to allow the user to double click on an event so they can edit its event name. However I still want to allow the user to be able to drag the event or change its size.

2.) Is it possible to prevent overlapping events? I don’t want the user to be able to drag an event to to the point it overlaps another event.

Thanks

Hi,

1)You can disable the double click on event by following code.

scheduler.attachEvent("onDblClick", function (x_ind, y_ind, x_val, y_val, e){ return false; });

2)You can prevent the event collision by following configuration

include the dhtmlxscheduler_collision.js

<script src="../codebase/ext/dhtmlxscheduler_collision.js"></script>
And add try this configuration

scheduler.config.collision_limit = 1;

please refer docs.dhtmlx.com/scheduler/collisions.html

Hope this will help you :slight_smile:

Thank you very much for your response, these helped me a lot :slight_smile:

How can I disable the creating an event by holding down the mouse button and dragging in the scheduler? I can’t figure this out either?

Thanks

Hi,

Do you want to disable the drag - drop feature for the events ?
if so you can use this configuration

scheduler.attachEvent("onBeforeDrag", function (id, mode, e){ return false; });

Thank you:)

Hi,

No I still want the drag feature to modify.

What I want to prevent is the user holding down the mouse button on an empty timeslot, and dragging the mouse, which creates a new event.

I don’t want them to be able to create an event like this.

Hi,

Try this configuration

scheduler.config.drag_create = false;

I’m sure his will help you out :slight_smile:

That’s the one, thank you very much :mrgreen: