Fixed dates

Hi,

I just installed dhtmlxScheduler and it works great! But i need 4 dates to be fixed at all times and not set for today.

How can i make the schedule stay at the week i would like? (ex: fixed at week 37 / or fixed at 28/11/2012 - 01/12/2012)

Thanks in advance!

scheduler.init command allows to define start date

scheduler.init("scheduler_here", new Date(2011,28,10), "week");

Thanks! But where should i add this, in what file or line?

I’m not very technical, so i need some more direction :slight_smile:

Thank you very much!

Hello,

What version are you using?
Standalone, ASP.net, Wordpress/Joomla plugin?

Best regards,
Ilya

Are you using standalone scheduler or plugin?

In case of plugin you can place code like next in scheduler_include.html

<script>
scheduler.setCurrrentView(new Date(2011,28,10), "week");
</script>

I’m using joomla component

@Stanislav

I tried the code, but it didn’t work. Probably another way with joomla?

Thanks for the quick reply!

Can you PM the url to the joomla site, where above change applied but still doesn’t work ?

Done :slight_smile:

Instead of above code, place in scheduler_include.html the next one

<script> scheduler.attachEvent("onSchedulerReady", function(){ window.setTimeout(function(){ scheduler.setCurrentView(new Date(2012,10,28), "week"); }); }); </script>

Stanislav, you’re my hero! :smiley:

Thanks mate!