Tag Archives: SharePoint

MVP SharePoint WebPart

There are many development patterns available and one that I like is Model-View-Presenter (MVP). With the MVP pattern, there are different variations that you can use. For example, there’s a variant called Passive View and another called Supervising Controller. They … Continue reading

Posted in .Net, SharePoint | Tagged , , | Leave a comment

DateRangesOverlap

When working with calendar items created with recurrence patterns, there’s no immediately obvious way through the object model to expose the individual recurrence items. If you create a calendar event with a daily recurrence pattern which generates 6 separate events, … Continue reading

Posted in SharePoint | Tagged , | Leave a comment

Hide SharePoint Ribbon Items

To hide a menu item from the SharePoint ribbon add a custom action to a module in your Visual Studio SharePoint project: <CustomAction Id="CustomIdentifier.Ribbon.Documents.New.NewFolder.Hide" Location="CommandUI.Ribbon" RegistrationType="ContentType" RegistrationId="0x"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.Documents.New.NewFolder"> </CommandUIDefinition> </CommandUIDefinitions> </CommandUIExtension> </CustomAction><CustomAction Id="CustomIdentifier.Ribbon.Documents.New.NewFolder.Hide" Location="CommandUI.Ribbon" RegistrationType="ContentType" RegistrationId="0x"> <CommandUIExtension> … Continue reading

Posted in SharePoint | Tagged , | 1 Comment

Register Code Behind InfoPath Form for Web Browsing

This post describes how to deploy a web browser compatible InfoPath form, with code-behind, through a SharePoint feature. Installing and registering an InfoPath form, along with a custom content type is pretty straight forward once you know the required steps. … Continue reading

Posted in InfoPath, SharePoint | Tagged , | Leave a comment

Sharing WebPart and User Control Properties

When creating a Visual WebPart, sometimes you want the main functionality to be contained within the user control and not the WebPart, so that, for example, you can use the WebPart on multiple pages, one where the WebPart is hosted … Continue reading

Posted in SharePoint | Tagged , , | 2 Comments