ComponentOne ASP.NET MVC Controls
ManualGridTile Class
Members  Example 

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

The ManualGridTile class provides properties used to configure the Tile rendered in ManualGridLayout. The following options for the ManualGridTile 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.

7. The tiles can be positioned in specific cells by specifying the row and column index using the Row and Column properties respectively.

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.Tile
      C1.Web.Mvc.GridTile
         C1.Web.Mvc.ManualGridTile

See Also

Reference

ManualGridTile Members
C1.Web.Mvc Namespace