Creates data key for the Grid<T>.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
The type of the data item
Syntax:
C#
public class GridDataKeyFactory<TModel> where TModel : class
Inheritance: objectGridDataKeyFactory<TModel>
Inherited Members
Constructors
Initializes a new instance of the GridDataKeyFactory<TModel> class.
C#
public GridDataKeyFactory(IList<IGridDataKey<TModel>> dataKeys, bool nameAsRouteKey)
dataKeys
nameAsRouteKeyboolProperties
DataKeys
IList<IGridDataKey<TModel>>
C#
public IList<IGridDataKey<TModel>> DataKeys { get; }
Methods
Defines a data key.
C#
public GridDataKeyBuilder<TModel> Add(string fieldName)
GridDataKeyBuilder<TModel>
Defines a data key.
C#
public GridDataKeyBuilder<TModel> Add<TValue>(Expression<Func<TModel, TValue>> expression)
GridDataKeyBuilder<TModel>