Class
QueryableCollectionViewGroup

Represents a wrapper over an AggregateFunctionsGroup that allows adding and removing of child items/groups.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public class QueryableCollectionViewGroup : CollectionViewGroup, IGroup

Inheritance: objectQueryableCollectionViewGroup

Derived Classes: GroupingImpl<TGroupKey, TItem>QueryableCollectionViewGroupRoot

Implements: IGroup

Constructors

QueryableCollectionViewGroup(object, IEnumerable, int, bool, AggregateResultCollection, QueryableCollectionViewGroup)

Initializes a new instance of the QueryableCollectionViewGroup class.

Declaration

cs-api-definition
protected QueryableCollectionViewGroup(object key, IEnumerable originalItems, int originalItemCount, bool hasSubgroups, AggregateResultCollection aggregateResults, QueryableCollectionViewGroup parentGroup)

Parameters

key

object

The group key.

originalItems

IEnumerable

The original items.

originalItemCount

int

The original item count.

hasSubgroups

bool

If set to true This group has child groups.

aggregateResults

AggregateResultCollection

The aggregate results.

parentGroup

QueryableCollectionViewGroup

The parent group.

Properties

AggregateResults

Gets the aggregate results.

Declaration

cs-api-definition
public AggregateResultCollection AggregateResults { get; }

Property Value

AggregateResultCollection

The aggregate results.

HasSubgroups

Gets a value indicating whether this instance has sub groups.

Declaration

cs-api-definition
public bool HasSubgroups { get; }

Property Value

bool

true if this instance has sub groups; otherwise, false.

Implements IGroup.HasSubgroups

IsBottomLevel

Gets a value that indicates whether this group has any subgroups.

Declaration

cs-api-definition
public override bool IsBottomLevel { get; }

Property Value

bool

Items

Gets the immediate items contained in this group.

Declaration

cs-api-definition
public ReadOnlyObservableCollection<object> Items { get; }

Property Value

ReadOnlyObservableCollection<object>

Key

Gets the key for this group.

Declaration

cs-api-definition
public object Key { get; }

Property Value

object

The key for this group.

Implements IGroup.Key

ParentGroup

Gets the parent group.

Declaration

cs-api-definition
public IGroup ParentGroup { get; }

Property Value

IGroup

The parent group.

Implements IGroup.ParentGroup

RootGroup

Gets the root group.

Declaration

cs-api-definition
protected virtual QueryableCollectionViewGroupRoot RootGroup { get; }

Property Value

QueryableCollectionViewGroupRoot

The root group.

Subgroups

Gets the subgroups, if HasSubgroups is true, otherwise empty collection.

Declaration

cs-api-definition
public ReadOnlyCollection<IGroup> Subgroups { get; }

Property Value

ReadOnlyCollection<IGroup>

The subgroups.

Implements IGroup.Subgroups

Methods

Equals(object)

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Load()

Loads all items for the group.

Declaration

cs-api-definition
protected void Load()

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string