This topic has not yet been rated - Rate this topic

ListTitleViewSelectorMenu Class

SharePoint 2010

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class ListTitleViewSelectorMenu : ViewSelectorMenu
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Tool to fix ListTitleViewSelectorMenu visible property
$0I've put together a free tool that fixes this annoying 'feature' of SP2010$0 $0$0 $0 $0View Rescue - http://www.pentalogic.net/sharepoint-products/free-stuff/view-rescue$0 $0$0 $0 $0Technical details$0 $0http://blog.pentalogic.net/2011/03/disappearing-view-selector-menu-sharepoint-2010/#more-1997$0
Bad Bug in SP2010 Control: fix
$0Well, we've develop custom aspx page for views in list definition and we've found the same issue.$0 $0You can fix it with follow code on your aspx page for view or add your web-part on exist page and find LTViewSelectorMenu instance on it.$0 $0$0 $0 $0typeof(ListTitleViewSelectorMenu)$0 $0                   .GetField("m_wpSingleInit", BindingFlags.Instance | BindingFlags.NonPublic)$0 $0                   .SetValue(LTViewSelectorMenu, true);$0 $0$0 $0 $0typeof(ListTitleViewSelectorMenu)$0 $0                   .GetField("m_wpSingle", BindingFlags.Instance | BindingFlags.NonPublic)$0 $0                   .SetValue(LTViewSelectorMenu, true);$0 $0$0 $0 $0$0 $0
Bad Bug in SP2010 Control: View selection stops working when webparts are added to the page
If you add a webpart - and this means any webpart, even an empty content editor webpart - this control will stop displaying the View part. All you will see is the navigation part. I consider this a very serious limitation, as the alternate way of selecting a view is most uncomfortable.

I would like to state that the credit for finding the mechanism of this bug (and a solution to it) goes to Vintentou on worldpress.com  - here is the URL:

http://vintentou.wordpress.com/2010/08/03/missing-dropdown-menu-for-choosing-of-views/