Tuesday, August 4, 2015

Color code for Calendar item using Calendar Overlay

Introduction

Some of us tried to make color code for events based on their category. Here i am going to give an idea to achieve this using calendar overlay.

Calendar Overlay

At First, We need to create Calendar list. Then, Create category based views in the list. For example, If we want display the holiday with different color. First we need to create view with holiday category based filter.

Creating View

Do following steps to create category based view
  • Click List Settings
  • Click Create View
  • Select Calendar View
  • Give view name and set filter for category field 
  • Clock OK

Set Calendar Overlay

Here is the steps to set overlay
  • Click Calendar Overlay in ribbon
  • Click New Calendar
  • Give Name of the calendar
  • Choose SharePoint as type of calendar
  • Select the color from dropdown
  • Give view URL as web url of calendar
  • And choose List and List view from dropdown list. Then click OK
Calendar overlay is all set. Now put data with holiday category. We can see the item with purple color code.
Note: There is a duplication in above view. To avoid this set Filter in Calendar view with Category equal to null. Then duplication problem will be solved.




1 comment: