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

Provides a fluent interface for configuring Grid detail templates.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

The type of the data model.

Syntax:

C#
public class GridDetailTemplateBuilder<T> where T : class

Inheritance: objectGridDetailTemplateBuilder<T>

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

Constructors

C#
public GridDetailTemplateBuilder(IGridDetailTemplate<T> detailView)
Parameters:detailViewIGridDetailTemplate<T>

Methods

Sets the client-side detail template for the grid using a Kendo UI template string.

C#
public GridDetailTemplateBuilder<T> ClientTemplate(string value)
Parameters:valuestring

The client-side template string that will be rendered for each detail row.

Returns:

GridDetailTemplateBuilder<T>

Sets the server-side detail template for the grid using a code block template.

C#
public GridDetailTemplateBuilder<T> Template(Action<T> value)
Parameters:valueAction<T>

The action that defines the detail template content.

Returns:

GridDetailTemplateBuilder<T>

Sets the server-side detail template for the grid using an inline template.

C#
public GridDetailTemplateBuilder<T> Template(Func<T, object> value)
Parameters:valueFunc<T, object>

The function that defines the detail template content and returns the rendered output.

Returns:

GridDetailTemplateBuilder<T>