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

GridLayoutItemBuilder

Methods

Content(System.Action)

Sets the HTML content of the container.

Parameters

content - System.Action

The action which renders the HTML content.

Example


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

Content(System.Func)

Sets the HTML content of the container.

Parameters

content - System.Func<Object,Object>

The Razor template for the HTML content.

Example


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

Content(System.String)

Sets the HTML content of the container.

Parameters

content - System.String

The HTML content.

Example


             @( Html.Kendo().GridLayout()
                     .Name("GridLayout")
                     .Panes(panes =>
                     {
                         panes.Add()
                              .Content("<p>Content</p>");
                     })
            )

Row(System.Nullable)

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

Parameters

value - System.Nullable<Int32>

Column(System.Nullable)

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

Parameters

value - System.Nullable<Int32>

RowSpan(System.Nullable)

Defines the row span of the item.

Parameters

value - System.Nullable<Int32>

ColumnSpan(System.Nullable)

Defines the column index of the grid.

Parameters

value - System.Nullable<Int32>

HtmlAttributes(System.Object)

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

Parameters

attributes - System.Object

The attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

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

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The attributes.

In this article
Not finding the help you need?