Monday 28 February 2011

No more ‘change view’ dropdown after changes in master page

I’m not sure when it happened, but I noticed today that I couldn’t change views…. I checked – yep, views all there, but no drop down box was showing on the Library ribbon.

I had been working on this master page for a few weeks now, tweaking as I found issues. I had started from the Starter Master page (thanks Randy Drisgill) and it seams this
No JavaScript errors and the problem seemed to be caused by an early change to the master page.

After much googling – I found a few references to SPNavigationManager. Sure enough, my master page was missing this element, but the v4.master has 3 references to this. I discovered this code was missing. I copied this to my 'hidden placeholders' area – and bingo – fixed.

<!-- fix issue with drop downs on list views--><SharePoint:DelegateControl runat="server" ControlId="TreeViewAndDataSource"></SharePoint:DelegateControl>
<!--end-->

updated 3/3/11 with changes to code - thanks drisgill

No comments:

Post a Comment