GridLayoutTagHelper
Class
Kendo UI GridLayout TagHelper GridLayoutTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("kendo-gridlayout")]
[RestrictChildren("gridlayout-rows", new string[] { "gridlayout-columns", "gridlayout-items" })]
[OutputElementHint("div")]
public class GridLayoutTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseGridLayoutTagHelper
Implements:
Inherited Members
Example:
csharp
@addTagHelper *, Kendo.Mvc
<kendo-gridlayout name="gridlayout" row-spacing="6px" column-spacing="10px">
<gridlayout-rows>
<gridlayout-row height="20px" />
<gridlayout-row height="100px" />
<gridlayout-row height="100px" />
</gridlayout-rows>
<gridlayout-columns>
<gridlayout-column width="300px" />
<gridlayout-column width="300px" />
<gridlayout-column width="300px" />
</gridlayout-columns>
<gridlayout-items>
<gridlayout-item row=1 column=1 column-span=1>
Header
</gridlayout-item>
<gridlayout-item row=2 column=2 column-span=2 row-span=2>
Some content here
</gridlayout-item>
<gridlayout-item row=2 column=3>
<div class='myClass'>Some other content here</div>
</gridlayout-item>
<gridlayout-item row=3 column=3>
<kendo-calendar name="calendar" >
</kendo-calendar>
</gridlayout-item>
</gridlayout-items>
</kendo-gridlayout>
Child Tags
Constructors
Initializes a new instance of the GridLayoutTagHelper class.
C#
public GridLayoutTagHelper(IKendoHtmlGenerator generator)
Properties
Defines the spacing between columns of the container.
C#
public string ColumnSpacing { get; set; }
Defines the horizontal align of the items in the grid column. Default value is Stretch.
C#
public HorizontalAlign HorizontalAlign { get; set; }
Defines the spacing between rows of the container.
C#
public string RowSpacing { get; set; }
Defines the vertical align of the items in the grid column. Default value is Stretch.
C#
public VerticalAlign VerticalAlign { get; set; }
Methods
Gets the initialization script.
C#
protected override string GetInitializationScript()
The initialization script.
Overrides:
C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
SerializeEvents method.
C#
protected override Dictionary<string, object> SerializeEvents()
Overrides:
Writes the HTML output.
C#
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: