Missing DropDown menu for choosing of views

Posted: August 3, 2010 in Sharepoint, Sharepoint 2010

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" />
Comments
  1. Mar says:

    thanks…I am trying to figure out the problem and I found your blog!

  2. avishnyakov says:

    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);

  3. pavan says:

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s