ComponentOne ASP.NET MVC Controls
AutoGridTile Class
Members  Example 

C1.Web.Mvc Namespace : AutoGridTile Class
Defines a class represents the tile for the auto grid layout.
Syntax
'Declaration
 
Public Class AutoGridTile 
   Inherits GridTile
public class AutoGridTile : GridTile 
Remarks

The AutoGridTile class provides properties used to configure the Tile rendered in AutoGridLayout. The following options for the AutoGridTile can be set using this class:


1. The drag operation for the tile can be enabled/disabled by setting the AllowDrag property.


2. The AllowHide property is used to display or hide, the hide icon used to toggle the  visibility of the tile.


3. The tile can even be displayed in the maximized state using  the AllowMaximize property. The tile can even be resized to a custom size when the AllowResize property is set to true.


4. The header of the tile is defined by using the HeaderText property and the content displayed in the tile is defined using the content property.


5. The header and toolbar of the tile can be hidden/displayed by setting the ShowHeader/ShowToolbar property respectively.


6. The ColumnSpan/RowSpam properties are used to define the number of column and rows spanned by a Tile.

Example
@(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.Tile
      C1.Web.Mvc.GridTile
         C1.Web.Mvc.AutoGridTile

See Also

Reference

AutoGridTile Members
C1.Web.Mvc Namespace