Some of the Event Read-Only

I am using Asp.net domain.

I want some of the Event(task) in scheduler are Read-only, not all Events.

In attachment , I want to make green colour Events are Read-only so user cant update it, another colours Events can update by users.

How to do this?
Any help Please.


Hello,
you can do it via API events
please check this example
docs.dhtmlx.com/scheduler/sample … event.html

yes i need this type only.
Thanks.
but Can u suggest me a code?

You can find the very same example in your scheduler package, you can check the code there. Or you can check the sources of an online demo
view-source:http://docs.dhtmlx.com/scheduler/samples/03_extensions/14_readonly_event.html

how to display and enable the control depends on the users.

You should add to Example: Read-only mode for specific events this snippet from page source:

[code]function block_readonly(id) {
if (!id) return true;
return !this.getEvent(id).readonly;
}

scheduler.attachEvent(“onBeforeDrag”, block_readonly);
scheduler.attachEvent(“onClick”, block_readonly);[/code]

It wasn’t obvious for me that blocking not performed “automaticly”…