How to disable mobile view in SharePoint 2010


A common question by our customers is to disable de mobile view of SharePoint 2010. The simple interface is just to simple for advanced devices we use nowadays. There are multiple ways to disable the mobility feature in SharePoint 2010. To disable the mobile view for all devices you can use the first described method (especially used for publishing websites), if you just want to disable the view for specific devices use the second method.

Modifications to the web.config file

Pros

  • Single modification for all devices
  • Can be part of a SharePoint solution (using code)
  • Not overwritten during Service Pack / Cumulative update

Cons

  • No individual handling

Go and edit the web.config file of the site (e.g C:\Inetpub\wwwroot\wss\VirtualDirectories\<webapp>)

Add the following code to the configuration/system.web node

<browserCaps>
  <result type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
  <filter>isMobileDevice=false</filter>
</browserCaps>

Or you can modify the compat.browser

Pros

  • Individual handling of mobile devices / browsers
  • Can be part of a SharePoint Solution (using code)

Cons

  • Overwritten during service pack

Go and edit the compat.browser file of the site (e.g C:\Inetpub\wwwroot\wss\VirtualDirectories\<webapp>\App_Browsers)

Modify isMobileDevice to false.

<capability name="isMobileDevice" value="false"/>
Advertisements