New to Telerik UI for ASP.NET Core? Start a free 30-day trial

GridBoundColumn class.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

TModel

TValue

Syntax:

C#
public class GridBoundColumn<TModel, TValue> : GridColumnBase<TModel>, IGridBoundColumn, IGridColumn where TModel : class

Inheritance: objectJsonObjectGridColumnBase<TModel>GridBoundColumn<TModel, TValue>

Derived Classes: GridForeignKeyColumn<TModel, TValue>

Implements: IGridBoundColumnIGridColumn

Inherited Members GridColumnBase<TModel>.FormatGridColumnBase<TModel>.EditorHtmlGridColumnBase<TModel>.GridGridColumnBase<TModel>.MemberGridColumnBase<TModel>.ExportableGridColumnBase<TModel>.TitleGridColumnBase<TModel>.WidthGridColumnBase<TModel>.MediaGridColumnBase<TModel>.MinScreenWidthGridColumnBase<TModel>.MinResizableWidthGridColumnBase<TModel>.ClientHeaderTemplateGridColumnBase<TModel>.ClientTemplateGridColumnBase<TModel>.ClientTemplateIdGridColumnBase<TModel>.ClientTemplateHandlerGridColumnBase<TModel>.ClientFooterTemplateGridColumnBase<TModel>.ClientGroupFooterTemplateGridColumnBase<TModel>.HiddenGridColumnBase<TModel>.IncludeInMenuGridColumnBase<TModel>.LockedGridColumnBase<TModel>.LockableGridColumnBase<TModel>.DraggableGridColumnBase<TModel>.StickyGridColumnBase<TModel>.StickableGridColumnBase<TModel>.ColumnMenuGridColumnBase<TModel>.EncodedGridColumnBase<TModel>.HeaderHtmlAttributesGridColumnBase<TModel>.FooterHtmlAttributesGridColumnBase<TModel>.VisibleGridColumnBase<TModel>.HtmlAttributesGridColumnBase<TModel>.HtmlAttributesHandlerGridColumnBase<TModel>.IsLastGridColumnBase<TModel>.ResizableGridColumnBase<TModel>.ClientFooterTemplateHandlerGridColumnBase<TModel>.ClientGroupFooterTemplateHandlerGridColumnBase<TModel>.ClientHeaderTemplateHandlerGridColumnBase<TModel>.ShouldEncodeHtmlAttributesGridColumnBase<TModel>.ShouldEncodeHeaderHtmlAttributesGridColumnBase<TModel>.ShouldEncodeFooterHtmlAttributesJsonObject.ToJson()object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the GridBoundColumn<TModel, TValue> class.

C#
public GridBoundColumn(Grid<TModel> grid, Expression<Func<TModel, TValue>> expression)
Parameters:gridGrid<TModel>expressionExpression<Func<TModel, TValue>>

Properties

Gets or sets the additional view data.

C#
public object AdditionalViewData { get; set; }

Implements: IGridBoundColumn.AdditionalViewData

Holds the value of the Client group header column template.

C#
public string ClientGroupHeaderColumnTemplate { get; set; }

Implements: IGridBoundColumn.ClientGroupHeaderColumnTemplate

ClientGroupHeaderColumnTemplateHandler member.

C#
public string ClientGroupHeaderColumnTemplateHandler { get; set; }

Implements: IGridBoundColumn.ClientGroupHeaderColumnTemplateHandler

Holds the value of the Client group header template.

C#
public string ClientGroupHeaderTemplate { get; set; }

Implements: IGridBoundColumn.ClientGroupHeaderTemplate

ClientGroupHeaderTemplateHandler member.

C#
public string ClientGroupHeaderTemplateHandler { get; set; }

Implements: IGridBoundColumn.ClientGroupHeaderTemplateHandler

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.

C#
public string[] ColumnAggregates { get; set; }

Implements: IGridBoundColumn.ColumnAggregates

Specify if the column is editable.

C#
public ClientHandlerDescriptor Editable { get; set; }

Implements: IGridBoundColumn.Editable

Gets or sets the name of the Editor Template.

C#
public string EditorTemplateName { get; set; }

Implements: IGridBoundColumn.EditorTemplateName

Expression

Expression<Func<TModel, TValue>>

Expression member.

C#
public Expression<Func<TModel, TValue>> Expression { get; }

Gets or sets a value indicating whether this GridColumnBase<T> is filterable.

C#
public bool Filterable { get; set; }
Property Value:

true if filterable; otherwise, false. The default value is true.

Implements: IGridBoundColumn.Filterable

The filter setting.

C#
public GridBoundColumnFilterableSettings FilterableSettings { get; set; }

Implements: IGridBoundColumn.FilterableSettings

Gets or sets a value indicating whether this column is groupable.

C#
public bool Groupable { get; set; }
Property Value:

true if groupable; otherwise, false.

Implements: IGridBoundColumn.Groupable

Gets or sets the groupable settings.

C#
public GridBoundColumnGroupableSettings GroupableSettings { get; set; }

Implements: IGridBoundColumn.GroupableSettings

HasHandlerEditor member.

C#
public bool HasHandlerEditor { get; set; }

Implements: IGridBoundColumn.HasHandlerEditor

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.

C#
public bool HideOnGroup { get; set; }

Implements: IGridBoundColumn.HideOnGroup

Gets type of the property to which the column is bound to.

C#
public Type MemberType { get; set; }

Implements: IGridBoundColumn.MemberType

Gets or sets metadata of the model.

C#
public ModelMetadata Metadata { get; }

Gets or sets a value indicating whether this GridColumnBase<T> is sortable.

C#
public bool Sortable { get; set; }
Property Value:

true if sortable; otherwise, false. The default value is true.

Implements: IGridBoundColumn.Sortable

The sort setting.

C#
public GridBoundColumnSortableSettings SortableSettings { get; set; }

Implements: IGridBoundColumn.SortableSettings

Value

Func<TModel, TValue>

Gets a function which returns the value of the property to which the column is bound to.

C#
public Func<TModel, TValue> Value { get; }

Methods

Provide a hook to append additional view data by child columns

C#
protected virtual void AppendAdditionalViewData(IDictionary<string, object> viewData, object dataItem)
Parameters:viewDataIDictionary<string, object>dataItemobject

GetEditor method.

C#
public string GetEditor(IHtmlHelper helper, HtmlEncoder encoder)
Parameters:helperIHtmlHelperencoderHtmlEncoderReturns:

string

The result.

Implements: IGridBoundColumn.GetEditor(IHtmlHelper, HtmlEncoder)

Serialize method.

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: GridColumnBase<TModel>.Serialize(IDictionary<string, object>)