Defines the fluent interface for configuring columns.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TColumn
TColumnBuilder
The type of the column builder.
Syntax:
public abstract class GridColumnBuilder<TColumn, TColumnBuilder> : GridColumnBuilderBase<TColumn, TColumnBuilder> where TColumn : IGridColumn where TColumnBuilder : GridColumnBuilder<TColumn, TColumnBuilder>
Inheritance: objectGridColumnBuilderBase<TColumn, TColumnBuilder>GridColumnBuilder<TColumn, TColumnBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the GridColumnBuilder<TColumn, TColumnBuilder> class.
protected GridColumnBuilder(TColumn column)
The column.
Methods
Sets the client footer template for the column.
public TColumnBuilder ClientFooterTemplate(string template)
The action defining the template.
Returns:TColumnBuilder
public TColumnBuilder ClientFooterTemplate<TModel>(TemplateBuilder<TModel> templateBuilder)
TColumnBuilder
public TColumnBuilder ClientFooterTemplateHandler(string handler)
TColumnBuilder
Sets the client group footer template for the column.
public TColumnBuilder ClientGroupFooterTemplate(string template)
The template
Returns:TColumnBuilder
public TColumnBuilder ClientGroupFooterTemplate<TModel>(TemplateBuilder<TModel> templateBuilder)
TColumnBuilder
public TColumnBuilder ClientGroupFooterTemplateHandler(string handler)
TColumnBuilder
Sets the client group footer template for the column.
public TColumnBuilder ClientGroupFooterTemplateView(MvcHtmlString value)
The partial view that will be rendered within the template.
Returns:TColumnBuilder
Sets the HTML attributes applied to the footer cell of the column.
public TColumnBuilder FooterHtmlAttributes(IDictionary<string, object> attributes, bool encodeAttributes = true)
The attributes.
encodeAttributesboolIndicates whether the attributes will be encoded. By default the HtmlAttibutes are encoded.
Returns:TColumnBuilder
Sets the HTML attributes applied to the footer cell of the column.
public TColumnBuilder FooterHtmlAttributes(IDictionary<string, object> attributes)
The attributes.
Returns:TColumnBuilder
Sets the HTML attributes applied to the footer cell of the column.
Sets the HTML attributes applied to the footer cell of the column.
public TColumnBuilder FooterHtmlAttributes(object attributes)
The attributes.
Returns:TColumnBuilder
Sets the server-side footer template for the column.
public TColumnBuilder FooterTemplate(Action template)
The action defining the template.
Returns:TColumnBuilder
Sets the footer template for the column.
public TColumnBuilder FooterTemplate(string template)
The string defining the template.
Returns:TColumnBuilder
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.
public TColumnBuilder IncludeInMenu(bool value)
The value used for the condition.
Returns:TColumnBuilder