ComponentOne ASP.NET MVC Controls
AutoGridGroup Class
Members  Example 

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

The AutoGridGroup class represents a group in the AutoGridLayout 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
//Adds two groups to the DashboardLayout control in the vertical orientation, with each group having different number of tiles added by expanding the columns in each group.

@(Html.C1().DashboardLayout()
         .AttachAutoGridLayout(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);
                 });
                 isb.Add().Children(cb =>
                 {
                     cb.Add().HeaderText(""Product Details"")
                        .Content(""#ProductDetails"")
                        .RowSpan(1).ColumnSpan(2);
                 });
             })))
Inheritance Hierarchy

System.Object
   C1.Web.Mvc.Group
      C1.Web.Mvc.AutoGridGroup

See Also

Reference

AutoGridGroup Members
C1.Web.Mvc Namespace