ComponentOne ASP.NET MVC Controls
SplitTile Class
Members  Example 

C1.Web.Mvc Namespace : SplitTile Class
Defines a class represents the tile for the split layout.
Syntax
'Declaration
 
Public Class SplitTile 
   Inherits Tile
   Implements ISplitLayoutItem 
public class SplitTile : Tile, ISplitLayoutItem  
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 size for the tile can be set using the Size property.

7. The minimum size for the tile is defined using the MinSize property to assure minimum size while resizing the tile.

Example
@(Html.C1().DashboardLayout()
    .AttachSplitLayout(slb => slb.Orientation(LayoutOrientation.Horizontal)
        .Items(isb =>
        {
            isb.AddGroup()
                .Size("2*")
                .Orientation(LayoutOrientation.Vertical)
                .Children(vgcb =>
                {
                    vgcb.AddGroup()
                        .Size("*")
                        .Orientation(LayoutOrientation.Horizontal)
                        .Children(hgcb =>
                        {
                            hgcb.AddTile()
                        .Size("*")
                        .HeaderText("Products Stock")
                        .Content("#ProductsStock");                         
                        });
                    vgcb.AddTile()
                        .Size("*")
                        .HeaderText("Product Details")
                        .Content("#ProductDetails");
                });

            isb.AddGroup()
                .Size("*")
                .Orientation(LayoutOrientation.Vertical)
                .Children(hgcb =>
                {
                    hgcb.AddTile()
                                    .Size("*")
                                    .HeaderText("CategorySales")
                                    .Content("#CategorySales");                  
                });
        }))
)
Inheritance Hierarchy

System.Object
   C1.Web.Mvc.Tile
      C1.Web.Mvc.SplitTile

See Also

Reference

SplitTile Members
C1.Web.Mvc Namespace