GridBoundColumn class.
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
TValue
Syntax:
public class GridBoundColumn<TModel, TValue> : GridColumnBase<TModel>, IGridBoundColumn, 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:
ClientGroupHeaderColumnTemplateHandler member.
public string ClientGroupHeaderColumnTemplateHandler { get; set; }
Implements:
Holds the value of the Client group header template.
public string ClientGroupHeaderTemplate { get; set; }
Implements:
ClientGroupHeaderTemplateHandler member.
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>>
Expression member.
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:
HasHandlerEditor member.
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:
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:
Methods
Provide a hook to append additional view data by child columns
protected virtual void AppendAdditionalViewData(IDictionary<string, object> viewData, object dataItem)
GetEditor method.
public string GetEditor(IHtmlHelper helper, HtmlEncoder encoder)
The result.
Implements:
Serialize method.
protected override void Serialize(IDictionary<string, object> json)
Overrides: