New to Telerik UI for WinFormsStart a free 30-day trial

Used to build groups from indexer

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Type Parameters:

T

Syntax:

C#
public class GroupBuilder<T> where T : IDataItem

Inheritance: objectGroupBuilder<T>

Derived Classes: GridGroupBuilder

Constructors

C#
public GroupBuilder(Index<T> index)
Parameters:indexIndex<T>

Properties

Gets the collection view associated with this builder.

C#
public RadCollectionView<T> CollectionView { get; }

Comparer

IComparer<Group<T>>

C#
public virtual IComparer<Group<T>> Comparer { get; set; }

Gets the default group predicate.

C#
public virtual GroupPredicate<T> DefaultGroupPredicate { get; }
Property Value:

The group predicate.

Gets or sets the group predicate.

C#
public virtual GroupPredicate<T> GroupPredicate { get; set; }
Property Value:

The group predicate.

Gets the groups.

C#
public GroupCollection<T> Groups { get; }
Property Value:

The groups.

Gets a value indicating whether [needs refresh].

C#
public bool NeedsRefresh { get; }
Property Value:

true if [needs refresh]; otherwise, false.

C#
protected int Version { get; }

Methods

C#
protected virtual Group<T> GetGroup(GroupCollection<T> cache, Group<T> newGroup, Group<T> parent, object key, int level)
Parameters:cacheGroupCollection<T>newGroupGroup<T>parentGroup<T>keyobjectlevelintReturns:

Group<T>

C#
public Group<T> GetItemGroup(T item)
Parameters:itemTReturns:

Group<T>

C#
protected virtual object GetItemKey(T item, SortDescriptor descriptor)
Parameters:itemTdescriptorSortDescriptorReturns:

object

Performs the grouping operation for specified items.

C#
public virtual GroupCollection<T> Perform(IReadOnlyCollection<T> items, int level, Group<T> parent)
Parameters:itemsIReadOnlyCollection<T>

The items.

levelint

The level.

parentGroup<T>

The parent.

Returns:

GroupCollection<T>