Defines the fluent interface for configuring bound columns
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
The type of the data item
Syntax:
public class GridBoundColumnBuilder<T> : GridColumnBuilder<IGridBoundColumn, GridBoundColumnBuilder<T>> where T : class
Inheritance: objectGridColumnBuilderBase<IGridBoundColumn, GridBoundColumnBuilder<T>>GridColumnBuilder<IGridBoundColumn, GridBoundColumnBuilder<T>>GridBoundColumnBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the GridBoundColumnBuilder<T> class.
public GridBoundColumnBuilder(IGridBoundColumn column, ViewContext viewContext, IUrlGenerator urlGenerator)
The column.
viewContextViewContextThe ViewContext object
urlGeneratorIUrlGeneratorThe IUrlGenerator generator.
Methods
This configuration options should be used with Server Binding. When Server Bininding is enabled, adds a HTML attribute based on a condition, evaluated on the server.
The aggregate(s) which are calculated when the grid is grouped by the columns field. The supported aggregates are "average", "count", "max", "min" and "sum". Use this setting to set the column aggregates when using an external DataSource.
public GridBoundColumnBuilder<T> Aggregates(string[] aggregates)
Sets the client group header column template for the column.
public GridBoundColumnBuilder<T> ClientGroupHeaderColumnTemplate(string value)
The template
Returns:Sets the client group header template for the column.
public GridBoundColumnBuilder<T> ClientGroupHeaderTemplate(string value)
The template
Returns:Sets the client group header template for the column using a template builder.
public GridBoundColumnBuilder<T> ClientGroupHeaderTemplate<TModel>(TemplateBuilder<TModel> templateBuilder)
The template builder that defines the client group header template.
Returns:Sets the name of the JavaScript function that will be used as the client group header template handler for the column.
public GridBoundColumnBuilder<T> ClientGroupHeaderTemplateHandler(string value)
The name of the JavaScript function that will handle the client group header template.
Returns:Sets the client group header template for the column.
public GridBoundColumnBuilder<T> ClientGroupHeaderTemplateView(MvcHtmlString value)
The partial view that will be loaded as a template.
Returns:Sets the client template for the column.
public GridBoundColumnBuilder<T> ClientTemplate(string value)
The template
Returns:Sets the client template for the column using a template builder.
public GridBoundColumnBuilder<T> ClientTemplate<TModel>(TemplateBuilder<TModel> templateBuilder)
The template builder that defines the client template.
Returns:Sets the name of the JavaScript function that will be used as the client template handler for the column.
public GridBoundColumnBuilder<T> ClientTemplateHandler(string handler)
The name of the JavaScript function that will handle the client template.
Returns:Sets the client template for the column.
public GridBoundColumnBuilder<T> ClientTemplateView(MvcHtmlString value)
The partial view that will be loaded within the template.
Returns:Sets the editable function.
public GridBoundColumnBuilder<T> Editable(string handler)
The name of the JavaScript function that will determine if the cell will be editable.
Returns:Specifies the name of the editor template component to be used for the column.
public GridBoundColumnBuilder<T> EditorTemplateComponentName(string templateName)
The name of the editor template component.
Returns:Specify which editor template should be used for the column
public GridBoundColumnBuilder<T> EditorTemplateName(string templateName)
name of the editor template
Returns:Provides additional view data in the editor template for that column (if any).
public GridBoundColumnBuilder<T> EditorViewData(object additionalViewData)
An anonymous object which contains the additional data
Returns:The additional view data will be provided if the editing mode is set to in-line or in-cell. Otherwise use AdditionalViewData(object)
Enables or disables HTML encoding the data of the column. All bound columns are encoded by default.
Enables or disables filtering the column. Through the configurator you can configure the filter functionality.
public GridBoundColumnBuilder<T> Filterable(Action<GridBoundColumnFilterableBuilder> configurator)
Enables or disables filtering the column. All bound columns are filterable by default.
Sets the server-side footer template for the column.
public GridBoundColumnBuilder<T> FooterTemplate(Action<GridAggregateResult> template)
The action defining the template.
Returns:Sets the server-side footer template for the column.
public GridBoundColumnBuilder<T> FooterTemplate(Func<GridAggregateResult, object> template)
The action defining the template.
Returns:Gets or sets the format for displaying the data.
Sets the sort configuration when grouping.
public GridBoundColumnBuilder<T> Groupable(Action<GridBoundColumnGroupableBuilder> configurator)
Enables or disables grouping by that column. All bound columns are groupable by default.
Sets the server-side group footer template for the column.
public GridBoundColumnBuilder<T> GroupFooterTemplate(Action<GridAggregateResult> template)
The action defining the template.
Returns:Sets the server-side group footer template for the column.
public GridBoundColumnBuilder<T> GroupFooterTemplate(Func<GridAggregateResult, object> template)
The action defining the template.
Returns:Sets the server-side group header column template for the column.
public GridBoundColumnBuilder<T> GroupHeaderColumnTemplate(Action<GridAggregateResult> template)
The action defining the template.
Returns:Sets the server-side group header column template for the column.
public GridBoundColumnBuilder<T> GroupHeaderColumnTemplate(Func<GridAggregateResult, object> template)
The action defining the template.
Returns:Sets the server-side group footer template for the column.
public GridBoundColumnBuilder<T> GroupHeaderTemplate(Action<GridGroupAggregateResult> template)
The action defining the template.
Returns:Sets the server-side group footer template for the column.
public GridBoundColumnBuilder<T> GroupHeaderTemplate(Func<GridGroupAggregateResult, object> template)
The action defining the template.
Returns:If set to true the column will be hidden when the grid is groupd via user interaction. The column will be displayed again if interaction to ungroup by it is performed.
Configures the sorting functionality of the column.
public GridBoundColumnBuilder<T> Sortable(Action<GridBoundColumnSortableBuilder> configurator)
Enables or disables sorting the column. All bound columns are sortable by default.
Sets the server-side template for the column.
public GridBoundColumnBuilder<T> Template(Action<T> templateAction)
The action defining the template.
Returns: