I am trying to look out for a way to make the defaultScope of calendar view to "Week". We can do it using the SharePoint UI.
Any idea if I have any property of SPView or SPCalendarView that can be used to make the Weekly View as default scope for List view.
Problem: - I have a calendar that displays events from multiple calendar (using calendar overlays). - My home page contains a list view web part of the calendar list.
By default the list view displays monthly view of the calendar. I would like it to display the Weekly view of the overlayed calendar.
I was thinking if I can make the defaultScope as weekly for the default view of the calendar list, Till now i am not able to find any answer.
Help Help Help... :)
Regards, Sudhir
The calendar rendering is dependent on only one query string parameter "CalendarPeriod".
So if i just append "?CalendarPeriod=week" in to my url the calendar rendering will update itself to display the weekly calendar.
It was so stupid :)
Thanks ashish for directing me to Calendar View Default Scope... moved my answer as commend as per request from Brian
– Sudhir Kesharwani Jan 17 '14 at 16:39