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

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GridLayoutItemBuilder

Inheritance: objectGridLayoutItemBuilder

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

Constructors

C#
public GridLayoutItemBuilder(GridLayoutItem container)
Parameters:containerGridLayoutItem

Methods

Defines the column number position of the item in the grid.

C#
public GridLayoutItemBuilder Column(int? value)
Parameters:valueint?Returns:

GridLayoutItemBuilder

Defines the column index of the grid.

C#
public GridLayoutItemBuilder ColumnSpan(int? value)
Parameters:valueint?Returns:

GridLayoutItemBuilder

Sets the HTML content of the container.

C#
public GridLayoutItemBuilder Content(Action content)
Parameters:contentAction

The action which renders the HTML content.

Returns:

GridLayoutItemBuilder

Example:
C#
@(  Html.Kendo().GridLayout()
.Name("GridLayout")
.Panes(panes =>
{
panes.Add()
.Content(() => { >%
<p>Content</p>
%<});
})
.Render();
)

Sets the HTML content of the container.

C#
public GridLayoutItemBuilder Content(Func<object, object> content)
Parameters:contentFunc<object, object>

The Razor template for the HTML content.

Returns:

GridLayoutItemBuilder

Example:
C#
@(Html.Kendo().GridLayout()
.Name("GridLayout")
.Panes(panes =&gt;
{
panes.Add()
.Content(@&lt;p&gt;Content&lt;/p&gt;);
})
.Render();)

Sets the HTML content of the container.

C#
public GridLayoutItemBuilder Content(string content)
Parameters:contentstring

The HTML content.

Returns:

GridLayoutItemBuilder

Example:
C#
@( Html.Kendo().GridLayout()
.Name("GridLayout")
.Panes(panes =&gt;
{
panes.Add()
.Content("&lt;p&gt;Content&lt;/p&gt;");
})
)

Sets the HTML attributes applied to the outer HTML element rendered for the item

C#
public GridLayoutItemBuilder HtmlAttributes(IDictionary<string, object> attributes)
Parameters:attributesIDictionary<string, object>

The attributes.

Returns:

GridLayoutItemBuilder

Sets the HTML attributes applied to the outer HTML element rendered for the item

C#
public GridLayoutItemBuilder HtmlAttributes(object attributes)
Parameters:attributesobject

The attributes.

Returns:

GridLayoutItemBuilder

Defines the row number position of the item in the grid.

C#
public GridLayoutItemBuilder Row(int? value)
Parameters:valueint?Returns:

GridLayoutItemBuilder

Defines the row span of the item.

C#
public GridLayoutItemBuilder RowSpan(int? value)
Parameters:valueint?Returns:

GridLayoutItemBuilder