SharePoint: creating a calendar view on a Tasks list programmatically

Working with SharePoint, I've needed to create a calendar view on a Tasks list programmatically (i.e. from a feature).

I've done some research on the web, and I've found the great article Creating calendar view from tasks list programmatically.

From here you can see how to add a view and (very important) how to set the ViewData property of the view, but above all you can see the owssvr.dll service explained (even if you can use the more intuitive SharePoint Manager.

Only a note: from the initial link, you have to remove the "<Query>" enclosing tags from the query property.

Add comment

Loading