ReadOnly Events

Is it possible to mark events that load via xml as readonly so they can’t be changed by the user, while also allowing users to create new events in the scheduler?

Hello,

Yes, you can do the following:

  1. Include readonly extension
  2. Pass “readonly” attribute = true. Or do not pass anything and simply set it up in the onEventLoading event.

Best regards,
Ilya

I’ve loaded the dhtmlxscheduler_readonly.js file.

I am loaded via xml.

If I do this:

or
if I add true to the event’s xml,

it does not make these events unmoveable.

Am I doing something wrong? Also, is there documentation on this? I could not find it.

Hello,

Please checkout scheduler\samples\03_extensions\14_readonly_event.html sample.
You need to add additional handlers which would check if event is readonly for those actions.

Best regards,
Ilya