Class GroupBuilder<T>
Used to build groups from indexer
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Data
Assembly: Telerik.WinControls.dll
Syntax
public class GroupBuilder<T>
where T : IDataItem
Type Parameters
T
|
Constructors
GroupBuilder(Index<T>)
Properties
CollectionView
Gets the collection view associated with this builder.
Declaration
public RadCollectionView<T> CollectionView { get; }
Property Value
RadCollectionView<T>
|
Comparer
Declaration
public virtual IComparer<Group<T>> Comparer { get; set; }
Property Value
System.Collections.Generic.IComparer<Group<T>>
|
DefaultGroupPredicate
Gets the default group predicate.
Declaration
public virtual GroupPredicate<T> DefaultGroupPredicate { get; }
Property Value
GroupPredicate<T>
The group predicate. |
GroupPredicate
Gets or sets the group predicate.
Declaration
public virtual GroupPredicate<T> GroupPredicate { get; set; }
Property Value
GroupPredicate<T>
The group predicate. |
Groups
Gets the groups.
Declaration
public GroupCollection<T> Groups { get; }
Property Value
GroupCollection<T>
The groups. |
NeedsRefresh
Gets a value indicating whether [needs refresh].
Declaration
public bool NeedsRefresh { get; }
Property Value
System.Boolean
|
Version
Declaration
protected int Version { get; }
Property Value
System.Int32
|
Methods
GetGroup(GroupCollection<T>, Group<T>, Group<T>, Object, Int32)
Declaration
protected virtual Group<T> GetGroup(GroupCollection<T> cache, Group<T> newGroup, Group<T> parent, object key, int level)
Parameters
GroupCollection<T>
cache
|
Group<T>
newGroup
|
Group<T>
parent
|
System.Object
key
|
System.Int32
level
|
Returns
Group<T>
|
GetItemGroup(T)
GetItemKey(T, SortDescriptor)
Declaration
protected virtual object GetItemKey(T item, SortDescriptor descriptor)
Parameters
T
item
|
SortDescriptor
descriptor
|
Returns
System.Object
|
Perform(IReadOnlyCollection<T>, Int32, Group<T>)
Performs the grouping operation for specified items.
Declaration
public virtual GroupCollection<T> Perform(IReadOnlyCollection<T> items, int level, Group<T> parent)
Parameters
IReadOnlyCollection<T>
items
The items. |
System.Int32
level
The level. |
Group<T>
parent
The parent. |
Returns
GroupCollection<T>
|