In SharePoint 2010 calendar overlay has a limitation of only 9 colors. Where as I need to have more colors as I have more than 9 views. How to add more colors and views to calendar overlay feature in sharepoint 2010?


You can't. There is a hard limit of 10 overlays in SharePoint.

public ICalendarAccessor CreateAccessor(string type)
    if (this.m_allIds.Count == 10)
        throw new SPException(SPResource.GetString("CalendarAggregationLimit", new object[0]));
    ICalendarAccessor accessor = this.CreateAccessor(type, Guid.NewGuid());
    this.m_accessorMap[accessor.Id] = accessor;
    return accessor;

Please note that you can have maximum of ANY 9 colors, you can customize it by CSS(not necessary to use the available ones), add it in page:

for LHS navigation:

<style type="text/css">



FOR calendar items:

<style type="text/css">
  • @Kanan, You have to add a script web part or modify the content of the page to change the colors defined by SharePoint. If you can add more colors you can't if you use the SharePoint calendar, change colors is the only thing you can do.
    – jaloplo
    Oct 17 '16 at 14:01
  • yes that is what i had mentioned "can have maximum of ANY 9 colors, you can customize it by CSS" . calendar allows maximum 9 colors, but what if anyone needs orange color, then my solution works, hope that helps. Oct 17 '16 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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