SharePoint 2010 Custom Events Calendar Add new Item hover not working

calendarsharepointsharepoint-2010

I am have created a custom events list based on the OOTB Calendar via Visual Studio 2010.

I create my list def and package it up and deploy no issues.

I then create a new list based on my custom list definition.

All seems fine

But when I want to add an item from the calendar view there's no mousehover functionality anymore, for the add new event when hovering over a day item in the calendar view.

If I create a new events list based on the OOTB list definition I can get the add new event from the calendar view.

As far as I can tell all the relevant .js files are included on the page when viewing the source.

Is there a trick to get this working for a custom events list?

Best Answer

Make sure the Type attribute is 106.

<ListTemplate
    Name="MyEvents"
    Type="106"
    BaseType="0"
    OnQuickLaunch="TRUE"
    FolderCreation="FALSE"
    SecurityBits="11"
    Sequence="340"
    DisplayName="Calendar (Custom)"
    Description=""
    Image="/_layouts/images/itevent.png"/>

This is a bug in my mind. In SharePoint 2007, I would always change the Type attribute so that it would not be confused with the out of the box List Definitions. However, with the introduction of the XsltListViewWebPart certain list types like events and discussions are only rendered properly if the Type matches the out of the box value.

Related Topic