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
Returns the current TColumnBuilder instance for method chaining.
The JavaScript function that returns the client footer template for the column.
public TColumnBuilder ClientFooterTemplateHandler(string templateHandler)
The action defining the template.
Returns:TColumnBuilder
Returns the current TColumnBuilder instance for method chaining.
Sets the client group footer template for the column.
public TColumnBuilder ClientGroupFooterTemplate(string template)
The template
Returns:TColumnBuilder
Returns the current TColumnBuilder instance for method chaining.
The JavaScript function that returns the client group footer template for the column.
public TColumnBuilder ClientGroupFooterTemplateHandler(string templateHandler)
The template
Returns:TColumnBuilder
Returns the current TColumnBuilder instance for method chaining.
Sets the client group footer template for the column.
public TColumnBuilder ClientGroupFooterTemplateView(IHtmlContent value)
The partial view that will be rendered within the template.
Returns:TColumnBuilder
Returns the current TColumnBuilder instance for method chaining.
Sets the header template for the column. If sorting is enabled, the template content wrapper must have a k-link CSS class.
public TColumnBuilder ClientHeaderTemplate(string template)
The action defining the template.
Returns:TColumnBuilder
Returns the current TColumnBuilder instance for method chaining.
The JavaScript function that returns the header template for the column. If sorting is enabled, the template content wrapper must have a k-link CSS class.
public TColumnBuilder ClientHeaderTemplateHandler(string templateHandler)
The action defining the template.
Returns:TColumnBuilder
Returns the current TColumnBuilder instance for method chaining.
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
Returns the current TColumnBuilder instance for method chaining.
Sets the HTML attributes applied to the footer cell of the column.
public TColumnBuilder FooterHtmlAttributes(object attributes, bool encodeAttributes = true)
The attributes.
encodeAttributesboolIndicates whether the attributes will be encoded. By default the HtmlAttibutes are encoded.
Returns:TColumnBuilder
Returns the current TColumnBuilder instance for method chaining.
Specifies 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
Returns the current TColumnBuilder instance for method chaining.