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

Defines the fluent interface for configuring group.

Definition

Constructors

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

Methods

Specifies the member by which the data should be grouped.

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

Member access expression which describes the member

Returns:

DataSourceGroupDescriptorBuilder

Specifies the member by which the data should be grouped.

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

Member type

sortDirectionListSortDirection

Sort order

sortComparestring

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

Returns:

DataSourceGroupDescriptorBuilder

Specifies the member by which the data should be grouped.

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

Member name

Returns:

DataSourceGroupDescriptorBuilder

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

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

Member access expression which describes the member

Returns:

DataSourceGroupDescriptorBuilder

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

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

Member name

Returns:

DataSourceGroupDescriptorBuilder