is it possible to reposition the startdate in the weekview?
I saw that it’s possible to choose between monday and sunday as the start of a week, but I want the first day to be displayed in the scheduler to be the current day and then have a view over the next 6 days.
For example: today is wednesday 2 march, so I would like to have the scheduler display the weekview as wednesday 2 march, thursday 3 march, friday 4 march, saturday 5 march, sunday 6 march, monday 7 march and tuesday 8 march.
when I open the sheduler tomorrow it should start on thursday.
This answer works for the scheduler, but now I want to include a minical (in the examples: \samples\05_calendar\01_select.html)
It seems when I use this line of code
scheduler.date.week_start = scheduler.date.day_start;
to reposition the scheduler, it produces an erronous minical. The minical then displays March 1 as a wednesday instead of a tuesday. If I remove the line it displays March 1 as a tuesday.
Minicalendar is a scheduler itself with some modifications rendered in a small div. That’s why changes to scheduler’s default views could make minicalendar displayed incorrectly.
There are two options to solve this:
Edit
function show_minical(){
function in \samples\05_calendar\01_select.html (and your project if you are using something similar).
Full edited sample:
[/code]
2. Create your own custom view with view_start = scheduler.date.day_start. That way you won't need to make any changes to default view week and minicalendar will be displayed correctly. Also you don't need to display default week view:
[code]
[/code]
I have deleted 'week_tab' so it won't be displayed. You can add your own view instead of it.
Check "[url=http://docs.dhtmlx.com/doku.php?id=dhtmlxscheduler:custom_views]Custom views in dhtmlxScheduler[/url]" page in documentation for details.