ComponentOne ASP.NET MVC Controls
ManualGridGroup Class
Members  Example 

C1.Web.Mvc Namespace : ManualGridGroup Class
Defines a class represents the group for the manual grid layout.
Syntax
'Declaration
 
Public Class ManualGridGroup 
   Inherits Group
public class ManualGridGroup : Group 
Remarks

The ManualGridGroup class represents a group in the ManualGridLayout and helps in retrieving the tiles contained in each group.

The group consists of tiles which are added to the group by using the Add method of the ListItemFactory class. The groups are added either horizontally or vertically depending on the orientation set for the layout.

The tiles in each group can be retrieved by using the Children property of the AutoGridGroup class.

Example
@(Html.C1().DashboardLayout()
    .AttachManualGridLayout(mglb => mglb.Orientation(LayoutOrientation.Vertical)
        .MaxRowsOrColumns(3)
        .CellSize(303)
        .Items(isb =>
        {
            isb.Add().Children(cb =>
            {
                cb.Add().HeaderText("Category Sales")
                    .Content("#CategorySales")
                    .RowSpan(1).ColumnSpan(1);
                cb.Add().HeaderText("Products Stock")
                    .Content("#ProductsStock")
                    .RowSpan(1).ColumnSpan(1)
                    .Row(4).Column(3);
                cb.Add().HeaderText("Products Stock")
                    .Content("#ProductsStock")
                    .RowSpan(1).ColumnSpan(1)
                    .Row(4).Column(4);
            });
            isb.Add().Children(cb =>
            {
                cb.Add().HeaderText("Product Details")
                    .Content("#ProductDetails")
                    .RowSpan(1).ColumnSpan(2)
                    .Row(1).Column(2);
            });
        })))
Inheritance Hierarchy

System.Object
   C1.Web.Mvc.Group
      C1.Web.Mvc.ManualGridGroup

See Also

Reference

ManualGridGroup Members
C1.Web.Mvc Namespace