New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI TileLayout TagHelper TileLayoutTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-tilelayout")]
[RestrictChildren("containers", new string[] { "gap", "reorderable" })]
public class TileLayoutTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperBaseTileLayoutTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

        <kendo-tilelayout name="tilelayout" columns="2" resizable="true" reorderable="true" columns-width="300px" rows-height="300px">
           <containers>
               <container body-template="Template One" col-span="1" row-span="1">
                   <container-header text="One" />
               </container>
               <container body-template="Template Two" col-span="1" row-span="1">
                   <container-header text="Two" />
               </container>
               <container body-template="Template Three" col-span="2" row-span="1">
                   <container-header text="Three" />
               </container>
           </containers>
       </kendo-tilelayout>

Constructors

Initializes a new instance of the TileLayoutTagHelper class.

C#
public TileLayoutTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

Defines the number of columns.

C#
public double? Columns { get; set; }

Determines the width of the columns. Numeric values are treated as pixels.

C#
public string ColumnsWidth { get; set; }

Determines the height of the layout. Numeric values are treated as pixels.

C#
public string Height { get; set; }

A value indicating whether keyboard navigation will be enabled.

C#
public bool? Navigatable { get; set; }

The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the TileLayout is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnKendoKeydown { get; set; }

The name of the JavaScript function that will handle the reorder event. Fired when a tile item is reordered.

C#
public string OnReorder { get; set; }

The name of the JavaScript function that will handle the resize event. Fired when a tile item is resized.

C#
public string OnResize { get; set; }

Determines whether the reordering functionality will be enabled.

C#
[HtmlAttributeName("reorderable")]
public bool? ReorderableEnabled { get; set; }

Determines whether the resizing functionality will be enabled.

C#
public bool? Resizable { get; set; }

Determines the height of the rows. Numeric values are treated as pixels.

C#
public string RowsHeight { get; set; }

Determines the width of the layout. Numeric values are treated as pixels.

C#
public string Width { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)