Kendo.Mvc.UI.Fluent.GridColumnBuilder

Defines the fluent interface for configuring columns.

Methods

FooterHtmlAttributes(System.Object)

Sets the HTML attributes applied to the footer 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).FooterHtmlAttributes(new {@class="order-footer"}))
%>

FooterHtmlAttributes(System.Collections.Generic.IDictionary<System.String,System.Object>)

Sets the HTML attributes applied to the footer 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).FooterHtmlAttributes(new {@class="order-footer"}))
%>

IncludeInMenu(System.Boolean)

Specifys whether the columns should be included in column header menu. By default all columns are included. The column also need to have a Title set in order to be included in the menu.

Example (ASPX)

<%= Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns => columns.Bound(o => o.OrderID).IncludeInMenu((bool)ViewData["hidden"]))
%>

ClientHeaderTemplate(System.String)

Sets the header template for the column. If sorting is enabled, the template content wrapper must have a k-link CSS class.

Parameters

template System.String

The action defining the template.

ClientGroupFooterTemplate(System.String)

Sets the client group footer template for the column.

Parameters

value System.String

The template

In this article
Not finding the help you need?