Kendo.Mvc.UI.Fluent.GridColumnGroupBuilder
Defines the fluent API for configuring GridColumnGroup
Properties
Column
Gets or sets the column.
Container
The 1 instance
Methods
Title(System.String)
Sets the title displayed in the header of the column.
Parameters
text System.String
The text.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Title("ID"))
%>
HeaderHtmlAttributes(System.Object)
Sets the HTML attributes applied to the header cell of the column.
Parameters
attributes System.Object
The attributes.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).HeaderHtmlAttributes(new {@class="order-header"}))
%>
HeaderHtmlAttributes(System.Collections.Generic.IDictionary<System.String,System.Object>)
Sets the HTML attributes applied to the header cell of the column.
Parameters
attributes System.Collections.Generic.IDictionary<System.String,System.Object>
The attributes.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).HeaderHtmlAttributes(new {@class="order-header"}))
%>
Visible(System.Boolean)
Makes the column visible or not. By default all columns are visible. Invisible columns are not rendered in the output HTML.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Visible((bool)ViewData["visible"]))
%>
Locked
Makes the column static. By default all columns are not locked.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Locked())
%>
Locked(System.Boolean)
Makes the column static or not. By default all columns are not locked.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Locked((bool)ViewData["locked"]))
%>
Lockable(System.Boolean)
If set to false the column will remain in the side of the grid into which its own locked configuration placed it.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Lockable((bool)ViewData["lockable"]))
%>
Sticky
Makes the column sticky. By default all columns are not sticky.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Sticky())
%>
Sticky(System.Boolean)
Makes the column sticky or not. By default all columns are not sticky.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Sticky((bool)ViewData["sticky"]))
%>
Stickable
Makes the column stickable. By default all columns are not stickable.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Stickable())
%>
Stickable(System.Boolean)
Makes the column stickable or not. By default all columns are not stickable.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Stickable((bool)ViewData["stickable"]))
%>
Hidden(System.Boolean)
Makes the column hidden or not. By default all columns are not hidden. Hidden columns are rendered in the output HTML but are hidden.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Hidden((bool)ViewData["hidden"]))
%>
Hidden
Hides a column. By default all columns are not hidden. Hidden columns are rendered in the output HTML but are hidden.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderID).Hidden())
%>
Columns(System.Action<Kendo.Mvc.UI.Fluent.GridColumnFactory<T>>)
The columns configuration for the 1
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.GridColumnFactory>
The action defining the configuration.