ComponentOne ASP.NET MVC Controls
AutoGridLayout Class
Members  Example 

C1.Web.Mvc Namespace : AutoGridLayout Class
Defines a class represents the auto grid layout, in which the tiles render one by one without overlapping.
Public Class AutoGridLayout 
   Inherits GridLayout
   Implements ITemplate 
public class AutoGridLayout : GridLayout, ITemplate  

The AutoGridLayout class is used to define the AutoGridLayout for the DashboardLayout control,  in which the tiles render one by one without overlapping. The following options for the layout can be set using the properties of this class:

1. The layout orientation can be set to horizontal or vertical using the Orientation property.

2. The groups which are of type AutoGridGroup class, are added using the Add method of the ListItemFactory class and can be retrieved using the Items property of this class.

3. Each group is split into multiple rows and columns based on the value set for the MaxRowOrColumns property.

4. The CellSize property is used to define the size of the cells, while the CellSpacing and GroupSpacing properties are used to define space between the cells in each group and the space between the groups respectively.

         .AttachAutoGridLayout(mglb => mglb.Orientation(LayoutOrientation.Vertical)
             .Items(isb =>
                 isb.Add().Children(cb =>
                     cb.Add().HeaderText(""Category Sales"")
                     cb.Add().HeaderText(""Products Stock"")
                 isb.Add().Children(cb =>
                     cb.Add().HeaderText(""Product Details"")
Inheritance Hierarchy


See Also


AutoGridLayout Members
C1.Web.Mvc Namespace