Kendo.Mvc.UI.Fluent.GridBoundColumnBuilder
Defines the fluent interface for configuring bound columns
Methods
Format(System.String)
Gets or sets the format for displaying the data.
Parameters
value System.String
The value.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderDate).Format("{0:dd/MM/yyyy}"))
%>
EditorViewData(System.Object)
Provides additional view data in the editor template for that column (if any).
Parameters
additionalViewData System.Object
An anonymous object which contains the additional data
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => {
columns.Bound(o => o.Customer).EditorViewData(new { customers = Model.Customers });
})
%>
EditorTemplateName(System.String)
Specify which editor template should be used for the column
Parameters
templateName System.String
name of the editor template
Sortable(System.Boolean)
Enables or disables sorting the column. All bound columns are sortable by default.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderDate).Sortable(false))
%>
Groupable(System.Boolean)
Enables or disables grouping by that column. All bound columns are groupable by default.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderDate).Groupable(false))
%>
Groupable(System.Action<Kendo.Mvc.UI.Fluent.GridBoundColumnGroupableBuilder>)
Sets the sort configuration when grouping.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderDate).Groupable(x => x.Sort(sort => sort.Dir(ListSortDirection.Ascending))))
%>
Filterable(System.Boolean)
Enables or disables filtering the column. All bound columns are filterable by default.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderDate).Filterable(false))
%>
Encoded(System.Boolean)
Enables or disables HTML encoding the data of the column. All bound columns are encoded by default.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => columns.Bound(o => o.OrderDate).Encoded(false))
%>
ClientTemplate(System.String)
Sets the client template for the column.
Parameters
value System.String
The template
ClientTemplateId(System.String)
Sets the client template id for the column.
Parameters
value System.String
The template id
ClientGroupHeaderTemplate(System.String)
Sets the client group template for the column.
Parameters
value System.String
The template
ClientGroupHeaderColumnTemplate(System.String)
Sets the client group header column template for the column.
Parameters
value System.String
The template
Editable(System.Func<System.Object,System.Object>)
Sets the editable function.
Parameters
editable System.Func<System.Object,System.Object>
The editable function in a text tag.
Editable(System.String)
Sets the editable function.
Parameters
editable System.String
The name of the JavaScript function that will determine if the cell will be editable.