Category Archives: Shorts

Security Trim SPNavigationNode

SharePoint Short #3 To have the URL specified by a SPNavigationNode security trimmed, make sure you do not specify the isExternal constructor parameter. Obviously, specifying true for this parameter would not apply security trimming against the link, as you would … Continue reading →

Posted in Shorts | Tagged , | Leave a comment

Save Conflict

SharePoint Short #2 In event receivers such as ListAdded, FieldAdded or ItemAdded, if you’re updating the newly created item you may encounter the following error: “Save Conflict” These events are asynchronous by default, so changing them to synchronous will ensure … Continue reading →

Posted in Shorts | Tagged , | Leave a comment

Set Status Bar Colour

SharePoint Short #1 To set the colour of a SharePoint 2010 status message, it’s important to specify it in lower-case and not start with an upper-case letter. The MSDN page for setStatusPriColor, found here, shows the colour values starting with … Continue reading →

Posted in Shorts | Tagged , | Leave a comment