Class
GroupDescriptor

Represents grouping criteria.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

cs-api-definition
public class GroupDescriptor : SortDescriptor

Inheritance: objectJsonObjectSortDescriptorGroupDescriptor

Inherited Members SortDescriptor.Deserialize(string)SortDescriptor.Serialize()SortDescriptor.MemberSortDescriptor.SortDirectionSortDescriptor.SortCompareJsonObject.ToJson()

Constructors

GroupDescriptor()

Declaration

cs-api-definition
public GroupDescriptor()

Properties

AggregateFunctions

Gets the aggregate functions used when grouping is executed.

Declaration

cs-api-definition
public AggregateFunctionCollection AggregateFunctions { get; }

Property Value

AggregateFunctionCollection

The aggregate functions that will be used in grouping.

DisplayContent

Gets or sets the content which will be used from UI. Usually this is the indicator that the the component is grouped by this field and it defaults to the field name. You can define your own string to show there.

Declaration

cs-api-definition
[JsonConverter(typeof(ObjectConverter))]
public object DisplayContent { get; set; }

Property Value

object

MemberType

Gets or sets the type of the member that is used for grouping. Set this property if the member type cannot be resolved automatically. Such cases are: items with ICustomTypeDescriptor, XmlNode or DataRow.

Declaration

cs-api-definition
[JsonIgnore]
public Type MemberType { get; set; }

Property Value

Type

The type of the member used for grouping.

Methods

CycleSortDirection()

Changes the SortDescriptor to the next logical value.

Declaration

cs-api-definition
public void CycleSortDirection()

Serialize(IDictionary<string, object>)

for internal use

Declaration

cs-api-definition
protected override void Serialize(IDictionary<string, object> json)

Parameters

json

IDictionary<string, object>

Overrides SortDescriptor.Serialize(IDictionary<string, object>)