GridForeignKeyColumn class.
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
TValue
Syntax:
C#
public class GridForeignKeyColumn<TModel, TValue> : GridBoundColumn<TModel, TValue>, IGridForeignKeyColumn, IGridBoundColumn, IGridColumn where TModel : class
Inheritance: objectJsonObjectGridColumnBase<TModel>GridBoundColumn<TModel, TValue>GridForeignKeyColumn<TModel, TValue>
Implements:
Inherited Members
Constructors
GridForeignKeyColumn method.
C#
public GridForeignKeyColumn(Grid<TModel> grid, Expression<Func<TModel, TValue>> expression, Action<ReadOnlyDataSourceBuilder> dataSource, string dataFieldValue, string dataFieldText, bool useServerEditor)
GridForeignKeyColumn method.
C#
public GridForeignKeyColumn(Grid<TModel> grid, Expression<Func<TModel, TValue>> expression, SelectList data)
GridForeignKeyColumn method.
C#
public GridForeignKeyColumn(Grid<TModel> grid, Expression<Func<TModel, TValue>> expression)
Properties
Set the data of the column.
C#
public SelectList Data { get; set; }
Implements:
The DataSource of the foreign key column.
C#
public DataSource DataSource { get; set; }
Implements:
Specifies the data text field.
C#
public string DataTextField { get; set; }
Implements:
Specifies the data value field.
C#
public string DataValueField { get; set; }
Implements:
SerializeSelectList member.
C#
public Action<IDictionary<string, object>, object> SerializeSelectList { get; }
Implements:
Specifies if a server editor is used for the foreign key column.
C#
public bool UseServerEditor { get; set; }
Implements:
Methods
AppendAdditionalViewData method.
C#
protected override void AppendAdditionalViewData(IDictionary<string, object> viewData, object dataItem)
Overrides:
Serialize method.
C#
protected override void Serialize(IDictionary<string, object> json)
Overrides: