EndUserSharePoint.com: Is there a way to color code a calendar?
Question of the day from Brian in Switzerland:
I tweaked out my Calendar today. The last thing I would love to have is the ability to assign colors to calendar items so that in calendar view, different topics are more clearly understood. I came across this guy who wrote an app (http://www.codeplex.com/planetwilson ), but I am guessing the SharePoint Super Admin would have to approve/install that? I am actually a Site Collection Admin currently for my Site…
Is there an out-of-the-box way to do this?
There is no OOTB color coding in calendars. You found the correct resource. Download it and see if there is a way to implement at the site collection level. I’ll be interested in a followup if you get it done.
Mark
There is a very good third party calendar web part from Bamboo Solutions which we have used extensively on our SharePoint 2003 sites and intend to use on our MOSS 2007 sites also. Unfortunately it is not free :(
The class Microsoft.SharePoint.WebControls.SPCalendarItem has a BackgroundColorClassName. If you create your own list items, you could change this to the CSS style of your choice. You can then bind these items to standard Sharepoint Calendar Control.
There is javascript way to do it.. search sharepoint blogs … it is posted there.. I have created a list template out of it… I am on a vacation… but if you want it i can email you once i am back next friday
I use this one in a SharePoint 2007 environ: http://planetwilson.blogspot.com/2007/11/updated-colour-color-calendar-for.html . the default colors that come with the basic categories are great & i use them for different event cats.
I am about to publish a generic solution to do it, see the preview here:
http://pathtosharepoint.wordpress.com/2008/11/04/sneak-peek-colored-calendar/
If you have specific use cases, feel free to contact me, and I’ll test my solution on them.
If you are in a hurry, note that there’s already a published solution that does a pretty good job. Start here:
http://pathtosharepoint.wordpress.com/2008/09/01/apply-color-coding-to-your-sharepoint-lists/#comment-106
Can you color-code by user? Say you have a teamsite and 10 users who access it. Is there anyway you can identify each person’s items on a calendar with a different color?
The method I propose is based on calculated columns, so it won’t work with a column of type “People”. But if you put the users’ names in a choice list you can do it.
I saw the same question on a forum this week. I’ll think about it, maybe I can come up with a better answer…
Christophe
I have posted a JavaScript solution (no custom web parts) here: http://techtrainingnotes.blogspot.com/2008/11/sharepoint-color-coded-calendars.html
An update on my current solution for color coding and other effects (all OOTB, no custom web part or SharePoint Designer needed):
http://pathtosharepoint.wordpress.com/2008/11/15/sharepoint-calendars-color-coding-hover-effects-etc/
Hello,
How can I do Color coding in SharePoint 2010.