Mobile Views

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The body section of a Windows SharePoint Services mobile list view is created through Microsoft ASP.NET mobile controls, but metadata in a supporting SharePoint list schema drives various aspects of the view. A mobile view is a standard SharePoint list view (not a Calendar, Datasheet, or Gantt view) that is additionally designated as a mobile view. All standard views for a given list that are designated as mobile views appear as options in the drop-down view list selector for the given list.

The items that are displayed in a mobile view are queried according to the same filter definition that is defined for the standard view in the Schema.xml file that defines the list type. However, the number of items that can be displayed in the list view for a mobile device is determined by a rendering limit (see Ellipses and Rendering Limits).

You can designate a standard list view in a Schema.xml file as a mobile view by setting the MobileView attribute of the View element to TRUE. To specify that the mobile view is the default mobile view, set the MobileDefaultView attribute of the View element to TRUE. The following example shows the opening View element for a standard view that is designated as the default mobile view for a list.

<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,camlid4;" DefaultView="TRUE" MobileView="True" MobileDefaultView="True" Url="AllItems.aspx">

To modify these mobile settings on an existing list view, use the MobileView and MobileDefaultView properties of the Microsoft.SharePoint.SPView class.

The standard list views of the following default SharePoint lists are designated as mobile views by default in a new Windows SharePoint Services deployment:

  • Announcements

  • Calendar

  • Tasks

  • Shared Documents

Mobile View Selection List Control

The SharePoint mobile view selection list control is a selection list control (System.Web.UI.MobileControls.SelectionList) that displays all the names of mobile views for the current list as drop-down options.

The default choice in the view selector is the default mobile view. If a default mobile view is not defined, the first mobile view defined in the list schema (Schema.xml) is displayed as the default choice. Mobile view names are displayed in alphabetical order.

If the number of mobile views exceeds the maximum number of mobile views defined by the rendering limit for number of views (see Ellipses and Rendering Limits), the remaining mobile views are not represented in the control. The maximum number of characters per each choice option is also set by a rendering limit.

If no mobile view is defined for a list, the view page is not displayed.