SharePoint - how to modify XSLT of SPCalendarView in SharePoint2010

Asked By Nani gandham on 27-Feb-12 12:02 PM
Hi All,

I have created SPCalendarView in SharePoint2010. How to modify the styles of calendar view? Any help would be appreciated.

kalpana aparnathi replied to Nani gandham on 27-Feb-12 12:49 PM

You can modify this view, then select start time as the begin and the end time as the end under time interval. Then check the effect.


If you want to let MOSS list the time range of an event in a Calendar View of a list instead of just the start time, please refer to the following article:click here

Nani gandham replied to kalpana aparnathi on 27-Feb-12 11:22 PM
thanks kalpana,

How can i modify styles? using XSLT or CSS
Is there any way to insert our own styles.

kalpana aparnathi replied to Nani gandham on 28-Feb-12 03:18 AM

Use a below code for view the spcalenderview like this.

private static string GetCalendarType(string type)
  if (type == null)
    type = string.Empty;
  switch (type.ToLower())
    case "day":
      return "day";
    case "week":
      return "week";
    case "timeline":
      return "timeline";
      return "month";

Read more:click here