Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
TValue
Syntax:
C#
public class GridForeignKeyColumn<TModel, TValue> : GridBoundColumn<TModel, TValue>, IGridTemplateColumn<TModel>, IGridForeignKeyColumn, IGridBoundColumn, IGridColumn where TModel : class
Inheritance: objectJsonObjectGridColumnBase<TModel>GridBoundColumn<TModel, TValue>GridForeignKeyColumn<TModel, TValue>
Implements:
Inherited Members
Constructors
C#
public GridForeignKeyColumn(Grid<TModel> grid, Expression<Func<TModel, TValue>> expression, Action<ReadOnlyDataSourceBuilder> dataSource, string dataFieldValue, string dataFieldText, bool useServerEditor)
C#
public GridForeignKeyColumn(Grid<TModel> grid, Expression<Func<TModel, TValue>> expression, SelectList data)
C#
public GridForeignKeyColumn(Grid<TModel> grid, Expression<Func<TModel, TValue>> expression)
Properties
Data
SelectList
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:
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
C#
protected void AppendSelectList(IDictionary<string, object> viewData, object dataItem)
C#
protected override IGridDataCellBuilder CreateDisplayBuilderCore(IGridHtmlHelper htmlHelper)
Overrides:
C#
protected override IGridDataCellBuilder CreateEditBuilderCore(IGridHtmlHelper htmlHelper)
Overrides:
C#
protected override void Serialize(IDictionary<string, object> json)
Overrides: