Start and end dates on calendar

Hi!

I want to set up a calendar just from one day to another day.

From example, from September 2009 to July 2010. and when you create an event, you can’t choose dates before or end choosen at creation

is it possible?

Similar functionality will be added to the next version.
Check the attached sample.
1269961801.zip (43.4 KB)

looks like there is a bug in it:

scheduler.init('scheduler_here',new Date(2009,5,30),"week"); scheduler.config.limit_start = new Date(2009,5,15); scheduler.config.limit_end = new Date (2009,6,15); scheduler.fromJSON([ { start_date:"2009-7-1 4:00", end_date:"2009-7-1 6:00", text:"You can create events only"}, { start_date:"2009-7-1 6:00", end_date:"2009-7-1 8:00", text:"From June 15"}, { start_date:"2009-7-2 6:00", end_date:"2009-7-2 8:00", text:"To July 15"} ])

but everything is one month behind.
shouldn’t be the limit in this case something like:

scheduler.init('scheduler_here',new Date(2009,6,30),"week"); scheduler.config.limit_start = new Date(2009,6,15); scheduler.config.limit_end = new Date (2009,7,15);
this should be (as far as i understand the scheduler at this moment)
problem is: i still want to scroll left and right of my limits - i just want to forbid to change something…

Javascript Date object counts month from zero, so 5 is the June

You can remove “onBeforeViewChange” event handler from _limit.js , it will restore navigation, but will keep block event creation

Thanks again for this great support.

i was working with my dhtmlxscheduler.js
looks like there are a few changes in the dhtmlxscheduler?
mine wasn’t working, but yours is…

just if anyone has the same problems…

That is betta version of scheduler 2.2 (it has few new events , which are used by extension) , final version will be released to public in few days.