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

Defines the fluent API for configuring the TileLayoutContainerHeaderSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class TileLayoutContainerHeaderSettingsBuilder

Inheritance: objectTileLayoutContainerHeaderSettingsBuilder

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

Constructors

C#
public TileLayoutContainerHeaderSettingsBuilder(TileLayoutContainerHeaderSettings settings)
Parameters:settingsTileLayoutContainerHeaderSettings

The TileLayoutContainerHeaderSettings

Methods

Defines the template that will render the content of the tile header.

C#
public TileLayoutContainerHeaderSettingsBuilder Template(string value)
Parameters:valuestring

The value that configures the template content.

Returns:

TileLayoutContainerHeaderSettingsBuilder

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Containers(c => {
c.Add().Header(h => h.Template("<b>Page Views</b>")).BodyTemplateId("views-chart-template");
})
)

Defines the template that will render the content of the tile header.

C#
public TileLayoutContainerHeaderSettingsBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

TileLayoutContainerHeaderSettingsBuilder

Defines the template that will render the content of the tile header.

C#
public TileLayoutContainerHeaderSettingsBuilder TemplateHandler(string value)
Parameters:valuestring

The value that configures the template content.

Returns:

TileLayoutContainerHeaderSettingsBuilder

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Containers(c =&gt; {
c.Add().Header(h =&gt; h.TemplateHandler("getHeader1Template")).BodyTemplateId("views-chart-template");
})
)
&lt;script&gt;
function getHeader1Template() {
return `&lt;b&gt;Page Views&lt;/b&gt;`;
}
&lt;/script&gt;

Defines the template that will render the content of the tile header.

C#
public TileLayoutContainerHeaderSettingsBuilder TemplateId(string value)
Parameters:valuestring

The value that configures the template content.

Returns:

TileLayoutContainerHeaderSettingsBuilder

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Containers(c =&gt; {
c.Add().Header(h =&gt; h.TemplateId("header1")).BodyTemplateId("views-chart-template");
})
)
&lt;script id="header1" type="text/x-kendo-template"&gt;
&lt;b&gt;Page Views&lt;/b&gt;
&lt;/script&gt;

Defines the template that will render the content of the tile header.

C#
public TileLayoutContainerHeaderSettingsBuilder TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template content.

Returns:

TileLayoutContainerHeaderSettingsBuilder

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Containers(c =&gt; {
c.Add().Header(h =&gt; h.TemplateView(Html.Partial("CardHeaderView"))).BodyTemplateId("views-chart-template");
})
)

Sets the text of the tile header.

C#
public TileLayoutContainerHeaderSettingsBuilder Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

TileLayoutContainerHeaderSettingsBuilder

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Containers(c =&gt; {
c.Add().Header(h =&gt; h.Text("Page Views")).BodyTemplateId("views-chart-template");
})
)