Categories | Question details Back To List | ||
Scheduler - Change event minimun duration and focus hour Hi! I have two questions, they look simple but I can't figure out how to do it. - it's possible to change the default event length? actually its 5 minutes, and I want it to be 15 minutes. and the other is more complicated to explain - the scheduler loads and the focus of the main layout begins in the 00:00 hrs, that initial hour can be changed to another? for example the 09:00 hrs? Thanks! for your hard work Answer posted by Alex (support) on Jul 10, 2009 09:05 Hello, >> it's possible to change the default event length? actually its 5 minutes, and I want it to be 15 minutes. it can be done as follows scheduler.config.time_step = 15 >> he scheduler loads and the focus of the main layout begins in the 00:00 hrs, that initial hour can be changed to another? for example the 09:00 hrs? yes, it is possible too: scheduler.config.first_hour = 9 in order to define last hour: scheduler.config.last_hour = .. Answer posted by Mario Granados on Jul 10, 2009 13:16 Thanks! But in the fist hour config, if I had an event at the 8:00 hrs, for example, it appears at the bottom outside of the scheduler, and I can't see from 00:00 hrs to 08:00 hrs, it is a bug o it work like that? I need just a focus, hope you can understand me Thanks Answer posted by Alex (support) on Jul 13, 2009 00:24 Hello, in the current version you can use the following approach to scroll scheduler to hour position: scheduler._els["dhx_cal_data"][0].scrollTop=scheduler.config.hour_size_px*8; But the final code will allow to define start-scroll position through: scheduler.config.scroll_hour Answer posted by jennifer on Jul 14, 2009 12:15 I am following this thread as I too want to show the scroll starting at 8 am but want to be able to scroll up to 00 as well. When I add the code you describe I get a javascript error: "scheduler._els.dhx_cal_data is null or not an object" Below is the code I am using. I have put it in the init script in my front page. If this is not the correct location let me know where. ... scheduler.config.scroll_hour=8; scheduler._els["dhx_cal_data"][0].scrollTop = scheduler.config.hour_size_px*8; scheduler.config.hour_date="%h:%i %A"; scheduler.locale.labels.section_description="Event Title"; scheduler.locale.labels.section_details="Event Details"; scheduler.config.details_on_create=true; scheduler.config.details_on_dblclick=true; scheduler.locale.labels.section_priority="Event Priority"; scheduler.locale.labels.section_is_recurring="This event reoccurs..."; scheduler.locale.labels.section_recurrence_update_opts="Make changes to recurring events..."; scheduler.locale.labels.section_recurrence_span="For the next..."; scheduler.locale.labels.section_has_reminder="Email me a reminder of this event..."; scheduler.init('scheduler_here',null,"week"); ... Answer posted by Alex (support) on Jul 15, 2009 00:44 The code scheduler._els["dhx_cal_data"][0].scrollTop = scheduler.config.hour_size_px*8; should be called after init(): ... scheduler.init('scheduler_here',null,"week"); scheduler._els["dhx_cal_data"][0].scrollTop = scheduler.config.hour_size_px*8; Answer posted by jennifer on Jul 15, 2009 09:04 That worked perfectly! Thank you so much. Jen |