Class
GroupContext

Provides contextual information about a group within a RadCollectionView control. This class is used as the binding context for RadCollectionViewGroupView instances and contains details about the group's structure, content, and expansion state.

Definition

Namespace:Telerik.Maui.Controls.CollectionView

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class GroupContext : NotifyPropertyChangedBase, INotifyPropertyChanged

Inheritance: objectNotifyPropertyChangedBaseGroupContext

Implements: INotifyPropertyChanged

Inherited Members NotifyPropertyChangedBase.OnPropertyChanged(string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, Action<T>, string)NotifyPropertyChangedBase.PropertyChanged

Constructors

GroupContext()

Declaration

cs-api-definition
public GroupContext()

Properties

IsExpanded

Gets a value indicating whether this group is currently expanded, showing its child items in the collection view. When collapsed, the group's items are hidden but the group header remains visible.

Declaration

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

Property Value

bool

Items

Gets the read-only collection of data items that belong to this group. This collection reflects the current state of the group and may change based on filtering and expansion state.

Declaration

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

Property Value

IReadOnlyList<object>

Key

Gets the grouping key that was used to create this group. This is the value that all items in this group share for the grouped property.

Declaration

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

Property Value

object

Level

Gets the zero-based nesting level (depth) of this group within the group hierarchy. Top-level groups have level 0, their nested groups have level 1, and so on.

Declaration

cs-api-definition
public int Level { get; }

Property Value

int