Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
TValue
Syntax:
public class GridBoundColumn<TModel, TValue> : GridColumnBase<TModel>, IGridBoundColumn, IGridTemplateColumn<TModel>, IGridColumn where TModel : class
Inheritance: objectJsonObjectGridColumnBase<TModel>GridBoundColumn<TModel, TValue>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridBoundColumn<TModel, TValue> class.
public GridBoundColumn(Grid<TModel> grid, Expression<Func<TModel, TValue>> expression)
Properties
Gets or sets the additional view data.
public object AdditionalViewData { get; set; }
Implements:
Holds the value of the Client group header column template.
public string ClientGroupHeaderColumnTemplate { get; set; }
Implements:
public string ClientGroupHeaderColumnTemplateHandler { get; set; }
Holds the value of the Client group header template.
public string ClientGroupHeaderTemplate { get; set; }
Implements:
public string ClientGroupHeaderTemplateHandler { get; set; }
Implements:
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 string[] ColumnAggregates { get; set; }
Implements:
Specify if the column is editable.
public ClientHandlerDescriptor Editable { get; set; }
Implements:
Gets or sets the name of the Editor Template.
public string EditorTemplateName { get; set; }
Implements:
Expression
Expression<Func<TModel, TValue>>
public Expression<Func<TModel, TValue>> Expression { get; }
Gets or sets a value indicating whether this GridColumnBase<T> is filterable.
public bool Filterable { get; set; }
true if filterable; otherwise, false. The default value is true.
Implements:
The filter setting.
public GridBoundColumnFilterableSettings FilterableSettings { get; set; }
Implements:
Gets or sets a value indicating whether this column is groupable.
public bool Groupable { get; set; }
true if groupable; otherwise, false.
Implements:
Gets or sets the groupable settings.
public GridBoundColumnGroupableSettings GroupableSettings { get; set; }
Implements:
Holds the value of the group footer template.
public HtmlTemplate<GridAggregateResult> GroupFooterTemplate { get; }
Implements:
Holds the value of the group header column template.
public HtmlTemplate<GridAggregateResult> GroupHeaderColumnTemplate { get; }
Implements:
Holds the value of the group header template.
public HtmlTemplate<GridGroupAggregateResult> GroupHeaderTemplate { get; }
Implements:
public bool HasHandlerEditor { get; set; }
Implements:
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.
public bool HideOnGroup { get; set; }
Implements:
Gets type of the property to which the column is bound to.
public Type MemberType { get; set; }
Implements:
Metadata
ModelMetadata
Gets or sets metadata of the model.
public ModelMetadata Metadata { get; }
Gets or sets a value indicating whether this GridColumnBase<T> is sortable.
public bool Sortable { get; set; }
true if sortable; otherwise, false. The default value is true.
Implements:
The sort setting.
public GridBoundColumnSortableSettings SortableSettings { get; set; }
Implements:
public ListSortDirection? SortDirection { get; }
Implements:
Methods
protected override IGridDataCellBuilder CreateDisplayBuilderCore(IGridHtmlHelper htmlHelper)
Overrides:
protected override IGridDataCellBuilder CreateEditBuilderCore(IGridHtmlHelper htmlHelper)
Overrides:
protected override IGridCellBuilder CreateFooterBuilderCore(IEnumerable<AggregateResult> aggregateResults)
Overrides:
protected override IGridCellBuilder CreateGroupFooterBuilderCore(IEnumerable<AggregateResult> aggregateResults)
Overrides:
Creates the Header column Builder.
public override IGridCellBuilder CreateGroupHeaderColumnBuilder(IEnumerable<AggregateResult> aggregatesResults)
Overrides:
Implements:
protected override IGridCellBuilder CreateHeaderBuilderCore()
Overrides:
protected override IGridDataCellBuilder CreateInsertBuilderCore(IGridHtmlHelper htmlHelper)
Overrides:
protected override void Serialize(IDictionary<string, object> json)
Overrides: