Monday, April 20, 2015

Sharepoint Task List - hiding the timeline from a view in c#

Ever wonder how to remove the timeline from a task list view using c#?  Me too.  Here is the answer...


var list = web.Lists[Constants.Lists.TaskList];
var view = list.Views["All Tasks"];
view.ViewData = "";
view.Update();  

That's hours and hours of my life I'll never get back.

No comments: