When add another web part to standard view page causes missing of drop down menu for choosing view.
Resolution:
Open view page in SharePoint Designer in advanced mode.
Find row …
<SharePoint:ListTitleViewSelectorMenu AlignToParent="true" id="LTViewSelectorMenu" runat="server" />
and replace with…
<SPAN id=onetidPageTitleSeparator><SPAN><SPAN style="POSITION: relative; WIDTH: 11px; DISPLAY: inline-block; HEIGHT: 11px; OVERFLOW: hidden"><IMG style="POSITION: absolute; BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; TOP: -585px !important; LEFT: 0px !important" alt=: src="/_layouts/images/fgimg.png"></SPAN></SPAN></SPAN> <SharePoint:ViewSelectorMenu ID="viewSelectorMenu1" runat="server" />
thanks…I am trying to figure out the problem and I found your blog!
Well, we’ve develop custom aspx page for views in list definition and we’ve found the same issue. You can fix it with follow code on your aspx page or add your web-part on exist page and find LTViewSelectorMenu on it.
typeof(ListTitleViewSelectorMenu)
.GetField(“m_wpSingleInit”, BindingFlags.Instance | BindingFlags.NonPublic)
.SetValue(LTViewSelectorMenu, true);
typeof(ListTitleViewSelectorMenu)
.GetField(“m_wpSingle”, BindingFlags.Instance | BindingFlags.NonPublic)
.SetValue(LTViewSelectorMenu, true);
Hi
I would like to add the view list like default,public and so on in the web part header so that i can select the view from drop down as it is in sharepoint 2007, i would appreciate if some one can help me to achieve the task. A detailed explanation is expected as am a new to sharepoint 2010.