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

Defines the fluent API for configuring TileLayoutContainer

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class TileLayoutContainerBuilder

Inheritance: objectTileLayoutContainerBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

TileLayoutContainerBuilder method.

C#
public TileLayoutContainerBuilder(TileLayoutContainer container)
Parameters:containerTileLayoutContainer

Properties

Gets the settings being configured.

C#
protected TileLayoutContainer Container { get; }

Methods

The template which renders as content for the tile item.

C#
public TileLayoutContainerBuilder BodyTemplate(string value)
Parameters:valuestring

The value for BodyTemplate

Returns:

TileLayoutContainerBuilder

Returns the current TileLayoutContainerBuilder instance.

The template which renders as content for the tile item.

C#
public TileLayoutContainerBuilder BodyTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the bodytemplate.

Returns:

TileLayoutContainerBuilder

Returns the current TileLayoutContainerBuilder instance.

The template which renders as content for the tile item.

C#
public TileLayoutContainerBuilder BodyTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for BodyTemplate

Returns:

TileLayoutContainerBuilder

Returns the current TileLayoutContainerBuilder instance.

The template which renders as content for the tile item.

C#
public TileLayoutContainerBuilder BodyTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for BodyTemplate

Returns:

TileLayoutContainerBuilder

Returns the current TileLayoutContainerBuilder instance.

The template which renders as content for the tile item.

C#
public TileLayoutContainerBuilder BodyTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for BodyTemplate

Returns:

TileLayoutContainerBuilder

Returns the current TileLayoutContainerBuilder instance.

A value that determines how many columns will the tile item span.

C#
public TileLayoutContainerBuilder ColSpan(double value)
Parameters:valuedouble

The value for ColSpan

Returns:

TileLayoutContainerBuilder

Returns the current TileLayoutContainerBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Columns(2)
.Containers(c =&gt; {
c.Add().BodyTemplateId("views-chart-template").ColSpan(1);
})
)

Holds the configuration settings for the header.

C#
public TileLayoutContainerBuilder Header(Action<TileLayoutContainerHeaderSettingsBuilder> configurator)
Parameters:configuratorAction<TileLayoutContainerHeaderSettingsBuilder>

The TileLayoutContainerHeaderSettingsBuilder for the header setting.

Returns:

TileLayoutContainerBuilder

Returns the current instance of TileLayoutContainerBuilder .

A value that determines how many rows will the tile item span.

C#
public TileLayoutContainerBuilder RowSpan(double value)
Parameters:valuedouble

The value for RowSpan

Returns:

TileLayoutContainerBuilder

Returns the current TileLayoutContainerBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.RowsHeight("235px")
.Containers(c =&gt; {
c.Add().BodyTemplateId("views-chart-template").RowSpan(1);
})
)