ComponentOne ASP.NET MVC Controls
SplitGroup Class
Members  Example 

C1.Web.Mvc Namespace : SplitGroup Class
Defines a class represents the group for the split layout.
Syntax
'Declaration
 
Public Class SplitGroup 
   Inherits Group
   Implements ISplitLayoutItem 
public class SplitGroup : Group, ISplitLayoutItem  
Remarks

The SplitGroup class represents a group in the SplitLayout and helps in retrieving the child items in each group which can either be tile or the nested group.

The group consists of tiles or the nested groups which are added to the group by using the AddTile/AddGroup method of the SplitLayoutItemFactoryBuilder class respectively. The top level groups are added either horizontally or vertically depending on the orientation set for the layout.

Further, each group has an orientation property which allows the tiles/groups inside the group to be rendered with a different orientation than that set for the layout.

The child items in each group(collection of groups /tiles) can be retrieved using the children property of SplitGroup class.

Example
@(Html.C1().DashboardLayout()
    .AttachSplitLayout(slb => slb.Orientation(LayoutOrientation.Horizontal)
        .Items(isb =>
        {
            isb.AddGroup()
                .Size("2*")
                .Orientation(LayoutOrientation.Vertical)
                .Children(vgcb =>
                {
                    vgcb.AddGroup()
                        .Size("*")
                        .Orientation(LayoutOrientation.Horizontal)
                        .Children(hgcb =>
                        {
                            hgcb.AddTile()
                        .Size("*")
                        .HeaderText("Products Stock")
                        .Content("#ProductsStock");                         
                        });
                    vgcb.AddTile()
                        .Size("*")
                        .HeaderText("Product Details")
                        .Content("#ProductDetails");
                });

            isb.AddGroup()
                .Size("*")
                .Orientation(LayoutOrientation.Vertical)
                .Children(hgcb =>
                {
                    hgcb.AddTile()
                                    .Size("*")
                                    .HeaderText("CategorySales")
                                    .Content("#CategorySales");                  
                });
        }))
)
Inheritance Hierarchy

System.Object
   C1.Web.Mvc.Group
      C1.Web.Mvc.SplitGroup

See Also

Reference

SplitGroup Members
C1.Web.Mvc Namespace