July 2009 Entries

Programmatically adjusting the toolbar of a ListViewWebPart

  I have been doing more work on programmatically adding lists, views and ListViewWebParts to automatically created sites this week and I've stumbled onto another challenge that took me more time than I expected to solve.   I'm creating sites and pogrammaticaly adding ListViewWebParts to the default.aspx page of that site. By default a ListViewWebPart that is added to a page shows the Full Toolbar. This isn't always what you want. Even worse, it's usually not what you want. If you add a ListViewWebPart to a page through the UI you can click Modify Shared Web Part and choose which toolbar type you...

Creating a custom view that filters on the current user or [Me]

  Earlier this week I was creating custom list views for a customer solution. On of the specifications was that the view needed a filter that only showed the documents that were created by the current user. You can do this using the user interface by specifying that the Created By field needed to be equal to [Me].     I was trying to get this same behaviour by adding a CAML query to my view  using the following code:   StringCollection viewFields = new StringCollection(); viewFields.Add("Title"); ...

DevDays presentation: LINQ and SharePoint Development and Sod This Pod Cast

  While I was writing the blog post about the SDN Event I realized I never posted my DevDays slides. It has been a while, but on May 29th I presented on the Dutch DevDays about LINQ & SharePoint Development.   I really enjoyed speaking at DevDays and as a bonus I got to do a Sod This pod cast by Oliver Sturm with Marianne van Wanrooij, Sandra de Ridder, Gaby Lieuw, Sara Ford and Daniëlle Loppé. It was a lot of fun to do, but I must admit that I haven't listened...

SQL Server Setup and Maintenance for SharePoint Farms

    The SQL Server databases are the heart of every SharePoint farm. Your SharePoint farm will only be as fast and as stable as you SQL Server environment is. Despite of that most SQL Server environments for SharePoint farms are maintained by SharePoint administrators that have no deep knowledge of the SQL internals and best practices. This is something that has grown from when SharePoint was only a small scale product. Right now however a lot of SharePoint implementations are enterprise wide and business critical. And if it is, it needs to be treated as such.   I must admit that before my...