GridForeignKeyColumnSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("foreign-key-column", ParentTag = "columns", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("filterable", new string[] { "commands", "columns", "sortable", "groupable", "datasource", "exportable" })]
[SuppressTagRendering]
public class GridForeignKeyColumnSettingsTagHelper : GridColumnTagHelper, ITagHelper, ITagHelperComponent, ITemplateComponent, IDataBoundWidget<DataSourceTagHelper>
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseGridColumnTagHelperGridForeignKeyColumnSettingsTagHelper...
Implements:
Inherited Members
Example:
csharp
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<columns>
<foreign-key-column >
<datasource>
</datasource>
</foreign-key-column>
</columns>
</kendo-grid>
Child Tags
Constructors
Initializes a new instance of the GridForeignKeyColumnSettingsTagHelper class.
C#
public GridForeignKeyColumnSettingsTagHelper()
Properties
Gets or sets the name of the field that will be used as the text for the foreign key column.
C#
public string TextField { get; set; }
Gets or sets the name of the field that will be used as the value for the foreign key column.
C#
public string ValueField { get; set; }
Gets or sets the values for the foreign key column.
C#
public IEnumerable Values { get; set; }