Quantcast
Channel: displaymode for mobile with desktop view for ipad in asp.net mvc 4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by viperguynaz for displaymode for mobile with desktop view for ipad in asp.net mvc 4

$
0
0

This is how we are directing tablets to the desktop view:

    DisplayModeProvider.Instance.Modes.Insert(0, new DefaultDisplayMode("")    {        ContextCondition = (context => DeviceConfig.GetDeviceType(context.GetOverriddenUserAgent()) == "tablet")    });

rather than creating uniqiue layouts & views for tablets, we just detect the tablets and set the DisplayModeId = "", which is the default (desktop) view.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>