Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Was wondering if someone has experience coloring a calendar event based on the value of a category. I have seen guides to do this via Sharepoint Designer but would like a way to do this through the Visual Studio 2010 project that is creating the list. Details or a link are most appreciated.

TIA

share|improve this question

2 Answers

up vote 2 down vote accepted

CSS, javascript & calculated columns should do the trick. Read the following posts:

share|improve this answer
Use the first link and make sure you follow their recommendations for adding color to a Sharepoint 2010 calendar (needs a difference script). Other than that this works like a charm – MikeC Oct 28 '11 at 3:31

One way to achieve this is through the calendar overlays feature. Create a view for each category. Then create a view that displays nothing (filter by date or something that excludes everything). Then add an overlay for each category view.

share|improve this answer
Here is one example of using the overlays programmatically: blog.falchionconsulting.com/index.php/2011/06/… – John Chapman Oct 24 '11 at 14:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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