6

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

1
  • Finally I got the answer. It was not that complicated as I expected. 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 Jan 17, 2014 at 16:39

4 Answers 4

6

Finally I got the answer. It was not that complicated as I expected.

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

1
  • thank you very much for posting the resolution. Can you move it to a comment on your original question so people see it when they first view the question? Feb 3, 2011 at 18:42
1

If you are using the CalendarPlus webpart, click Modify Web Part Settings. On the General Settings tab, change Default view Period from Month to Week. Note: Day is also an option.

If you wish to simply change the calendar itself to view the week, then go to the calendar. From the ribbon, select Calendar Tools --> Calendar. Select *List Settings. Scroll down to Views. Click on the view you wish to edit. Change Default Scope to Week.

1
  • Hi Thanks for your answer, I was able to figure out the right answer to this, I have posted the same in this thread. Apr 24, 2013 at 21:47
0

The only other way to change the default scope of calendar view other than UI is to send RPC call to owssvr.dll. For complete solution, visit this link -

http://www.manvir.net/change-the-default-scope-of-sharepoint-calendar-view-to-week/

1
  • While this may theoretically answer the question, we prefer inclusion of the essential parts of the answer here, and to provide the link for reference. See answer for general guidelines. Also we require disclosure of any affiliation with products or websites. Please see May I promote products or websites I am affiliated with here? for guidelines.
    – SPDoctor
    Apr 25, 2013 at 8:23
-1

Just go to "Calendar Tools"/"Modify View" and set the default scope to Week!

there is no need to program or use external software.

regards, Jörg

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.