Tag Archives: Event

To call or not to call? SharePoint event receiver base methods.

When you create a new SPListItemEventReceiver using one of the templates available in Visual Studio 2010 you will find that the method stub that is generated contains a single line of code. Let’s use the ItemAdded event as an example.

Posted in SharePoint, SharePoint 2007, SharePoint 2010 | Tagged , , | 1 Comment

When using the ItemUpdated and ItemAdded events is the only choice you have.

Let me explain by way of an example.  You have implemented a custom insitu EDRMS solution which will set the permissions on an item to ‘Readonly’ when the item’s Item Status column is set to a value of ‘RECORD’.  In making the item … Continue reading

Posted in .NET Development, SharePoint, SharePoint 2007, SharePoint 2010, Tips and Tricks | Tagged , , , , | Leave a comment

Treeview using PopulateOnDemand and SelectedNodeChanged

You might, like me have come across major issues using a treeview to support both the PopulateOnDemand and SelectedNodeChanged events.  The problems are further compounded if you are using Ajax. I wanted to use a tree view to help users navigate around … Continue reading

Posted in .NET Development, SharePoint, SharePoint 2007, Tips and Tricks | Tagged , , , , | 2 Comments

Stop SharePoint events firing

To stop events firing in SharePoint 2007 we call a method to disable the event firing, perform our update and then call another method to enable it again. The code might look something like this. This has changed in SharePoint … Continue reading

Posted in SharePoint, SharePoint 2007, SharePoint 2010 | Tagged , | Leave a comment

Adding a list item is not the only event that triggers the ItemAdded Event Receiver…..

I had implemented an ItemAdded event linked to a content type to force customisation of a list when an item is added for the first time.  This follows from the  article I posted here, which I no longer advocate.  I … Continue reading

Posted in .NET Development, SharePoint, SharePoint 2007, SharePoint 2010 | Tagged , , , , | Leave a comment