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 StackLayoutContainerBuilder

Inheritance: objectStackLayoutContainerBuilder

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

Constructors

C#
public StackLayoutContainerBuilder(StackLayoutContainer container)
Parameters:containerStackLayoutContainer

Methods

Sets the HTML content of the container.

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

The action which renders the HTML content.

Returns:

StackLayoutContainerBuilder

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

Sets the HTML content of the container.

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

The Razor template for the HTML content.

Returns:

StackLayoutContainerBuilder

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

Sets the HTML content of the container.

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

The HTML content.

Returns:

StackLayoutContainerBuilder

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