block events

I want to make that it is impossible to modify an event in the scheduler three weeks before the actual date, how can i do it?


You can use the following code

scheduler.attachEvent("onLightbox", function(){ var section = scheduler.formSection("description"); section.control.disabled = true; });

or else you can make a particular event as read only by

scheduler.getEvent(id).readonly = true;


Don’t forget to add this JS library


Please refer

Thank you for your help but i was looking to block adding or modifing events that are older than 2 weeks in the scheduler!
Do you know how to do it, it tried :

scheduler.config.limit_start = new Date(2013,5,15);
scheduler.config.limit_end = new Date (2013,6,15);

but it doesn t work!!!


Please, add this extension and the config will start work: ext/dhtmlxscheduler_limit.js
You could add or modify events in this interval and you can’t make it at any other time.

Try using blockTime method for solving the issue: … rtaindates … ktime.html

Thank you for your help, it worked!

hey,It worked for you
That’s great.
Can u please send the code for the same and explain how you got it all worked out.