Defines the fluent interface for configuring group.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
Syntax:
public class DataSourceGroupDescriptorFactory<TModel> : DataSourceGroupDescriptorFactoryBase<DataSourceGroupDescriptorFactory<TModel>> where TModel : class
Inheritance: objectDataSourceGroupDescriptorFactoryBase<DataSourceGroupDescriptorFactory<TModel>>DataSourceGroupDescriptorFactory<TModel>
Inherited Members
Constructors
public DataSourceGroupDescriptorFactory(IList<GroupDescriptor> descriptors)
Methods
Specifies the member by which the data should be grouped.
public DataSourceGroupDescriptorBuilder Add<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Returns:Specifies the member by which the data should be grouped.
public DataSourceGroupDescriptorBuilder Add<TValue>(string memberName, ListSortDirection sortDirection, string sortCompare = null)
Member type
sortDirectionListSortDirectionSort order
sortComparestringThe name of the JS handler that is used for sorting the groups.
Returns:Specifies the member by which the data should be grouped.
public DataSourceGroupDescriptorBuilder Add<TValue>(string memberName)
Member name
Returns:Specifies the member by which the data should be sorted in descending order and grouped.
public DataSourceGroupDescriptorBuilder AddDescending<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Returns:Specifies the member by which the data should be sorted in descending order and grouped.
public DataSourceGroupDescriptorBuilder AddDescending<TValue>(string memberName)
Member name
Returns: