New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent interface for configuring group.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TModel

Syntax:

C#
public class DataSourceGroupDescriptorFactory<TModel> where TModel : class

Inheritance: objectDataSourceGroupDescriptorFactory<TModel>

Derived Classes: ReadOnlyCustomDataSourceGroupDescriptorFactory

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DataSourceGroupDescriptorFactory method.

C#
public DataSourceGroupDescriptorFactory(IList<GroupDescriptor> descriptors)
Parameters:descriptorsIList<GroupDescriptor>

Methods

Specifies the member by which the data should be grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> Add(string memberName, Type memberType, ListSortDirection sortDirection)
Parameters:memberNamestring

Member name

memberTypeType

Member type

sortDirectionListSortDirection

Sort order

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.

Specifies the member by which the data should be grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> Add(string memberName, Type memberType)
Parameters:memberNamestring

Member name

memberTypeType

Member type

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.

Specifies the member by which the data should be grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> Add<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.

Specifies the member by which the data should be grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> Add<TValue>(string memberName, ListSortDirection sortDirection, string sortCompare)
Parameters:memberNamestring

Member type

sortDirectionListSortDirection

Sort order

sortComparestring

The name of the JS handler that is used for sorting the groups.

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.

Specifies the member by which the data should be grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> Add<TValue>(string memberName, ListSortDirection sortDirection)
Parameters:memberNamestring

Member type

sortDirectionListSortDirection

Sort order

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.

Specifies the member by which the data should be grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> Add<TValue>(string memberName)
Parameters:memberNamestring

Member name

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.

Specifies the member by which the data should be sorted in descending order and grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> AddDescending(string memberName, Type memberType)
Parameters:memberNamestring

Member name

memberTypeType

Member type

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.

Specifies the member by which the data should be sorted in descending order and grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> AddDescending<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.

Specifies the member by which the data should be sorted in descending order and grouped.

C#
public DataSourceGroupDescriptorBuilder<TModel> AddDescending<TValue>(string memberName)
Parameters:memberNamestring

Member name

Returns:

DataSourceGroupDescriptorBuilder<TModel>

The DataSourceGroupDescriptorBuilder<T> instance for further configuration of the group.