I have a calendar view that is showing a calculated field for the View Title.

The same value is repeated for Month, Week, and Day. The odd thing is when in Week View the appropriate field information displays if it is an "All Day Event". If it is not an "All Day Event", there is no title or location displayed.

The calculated field value that is used for the title is: ="<span style='width:100%;height:100%;background-color:"&ColorVALUE&"' ><font color=black>"&TITLEFIELD&"</font></span>"

Basically, I am highlighting the title with a specific color based on certain values. It works for Month view, Day view, and all day events in Week View. It is just the "Week View" non-all day that fails.

Here is the code section from the calendar:

  <ListViewXml xmlns="http://schemas.microsoft.com/WebPart/v2/ListView"><View Name="{1475A8FC-B8BB-4665-BA1B-B0DB8C5E93CC}" DefaultView="TRUE" Type="CALENDAR" Scope="Recursive" RecurrenceRowset="TRUE" DisplayName="- Departmental PTO" Url="/sites/wsoldi/oldsc/Lists/Scheduling Calendar/cPTO.aspx" Level="1" BaseViewID="2" ContentTypeID="0x" ImageUrl="/_layouts/images/events.png">

<FieldRef Name="EventDate"/><FieldRef Name="EndDate"/><FieldRef Name="Title"/><FieldRef Name="fRecurrence" Explicit="TRUE"/>

<CalendarViewStyle  Title=&”Day&” Type=&”day&” Template=&”CalendarViewdayChrome&” Sequence=&”1&” Default=&”FALSE&” />
<CalendarViewStyle  Title=&”Week&” Type=&”week&” Template=&”CalendarViewweekChrome&” Sequence=&”2&” Default=&”FALSE&” />
<CalendarViewStyle  Title=&”Month&” Type=&”month&” Template=&”CalendarViewmonthChrome&” Sequence=&”3&” Default=&”TRUE&” />
<FieldRef Name="zzz_NOTUSED_CalendarText" Type="CalendarMonthTitle"/>
<FieldRef Name="zzz_NOTUSED_CalendarText" Type="CalendarWeekTitle"/>
<FieldRef Name="Event_Location" Type="CalendarWeekLocation"/>
<FieldRef Name="zzz_NOTUSED_CalendarText" Type="CalendarDayTitle"/>
<FieldRef Name="Event_Location" Type="CalendarDayLocation"/>
<FieldRef Name="EventDate"/>
<FieldRef Name="EndDate"/>
<FieldRef Name="RecurrenceID"/>
<Value Type="DateTime">
<FieldRef Name="Type_Of_Event0"/>
<Value Type="Text">PTO</Value>
<Aggregations Value="Off"/>
<Toolbar Type="Standard"/>


1 Answer 1


Figured it out...

For some reason, the "Week" view didn't like the "Height:100%" on the field.

Once removed, it worked fine.

  • please mark this as answer then Dec 14, 2012 at 8:30

Your Answer

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

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