AdaptiveMultiView
<EktronUI:AdaptiveMultiView>
Lets you specify sections of a template that will appear for a specific Device Group. When a page is loaded, the template determines which device group the visitor’s device fits into and displays the appropriate view for this control.
This UI control associates each “AdaptiveView” section to one of the Device Groups created in the Workarea (Workarea > Settings > Configuration > Mobile Settings > View All Device Groups).
AdaptiveMultiView syntax:
<ektronUI:AdaptiveMultiView runat="server" ID="MyMobileControl"> <ektronUI:AdaptiveView ID="AdaptiveView1" runat="server" GroupId="7" GroupType="Breakpoint"> I'm a SmartPhone! </ektronUI:AdaptiveView> <ektronUI:AdaptiveView ID="AdaptiveView2" runat="server" GroupId="3" GroupType="DeviceGroup"> I'm a CoolPhone! </ektronUI:AdaptiveView> <ektronUI:AdaptiveView ID="AdaptiveView3" runat="server" GroupId="0" GroupType="DeviceGroup"> I'm Generic Mobile! </ektronUI:AdaptiveView> <ektronUI:AdaptiveView ID="AdaptiveView4" runat="server" IsDefaultView="true"> I'm a Default! </ektronUI:AdaptiveView> </ektronUI:AdaptiveMultiView>
AdaptiveMultiView properties
- GroupId (Long)
Group Id for the Device Group, which is displayed you can find in the table at Workarea > Settings > Configuration > Mobile Settings > View All Device Groups. If you set this to 0, GroupID is associated with any device that does not fit into any of the Device Groups created.
NOTE: If Breakpoint Groups exist, every device will fall into one of these groups, therefore making this “Generic Mobile” group unusable.
- GroupType (String)
Determines whether the group is a Breakpoint Group or a manually created Device Configuration. The possible values for this property are
Breakpoint
orDeviceGroup
. - IsDefaultView (Boolean)
Set this value to “true” to display this view for any visitors using a device that doesn’t fit into any other group. This view will typically be displayed for any desktop visitors.