New to Telerik UI for .NET MAUIStart a free 30-day trial

Provides a view over the already computed data from the ItemsSource.

Definition

Namespace:Telerik.Maui.Data

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public interface IDataViewCollection : IEnumerable

Inherited Members IEnumerable.GetEnumerator()

Properties

Gets a value indicating whether all the internal data operations are completed and the view may be properly accessed.

C#
bool IsDataReady { get; }

Gets the top-level items within the view. These might be either IDataGroup instances or data items if no grouping is applied.

C#
IReadOnlyList<object> Items { get; }

Methods

Collapses all the groups.

C#
void CollapseAll()

Attempts to collapse the provided IDataGroup instance.

C#
void CollapseGroup(IDataGroup group)
Parameters:groupIDataGroup

Collapses the immediate groups that contains the specified item.

C#
void CollapseItem(object item)
Parameters:itemobject

Expands all the groups.

C#
void ExpandAll()

Attempts to expand the provided IDataGroup instance.

C#
void ExpandGroup(IDataGroup group)
Parameters:groupIDataGroup

Expands the chain of groups where the specified item resides.

C#
void ExpandItem(object item)
Parameters:itemobject

Enumerates all the present IDataGroup instances using depth-first approach.

C#
IEnumerable<IDataGroup> GetGroups(Predicate<IDataGroup> condition = null)
Parameters:conditionPredicate<IDataGroup>

An optional condition that may be used to filter the results.

Returns:

IEnumerable<IDataGroup>

Determines whether the provided group is considered "Expanded" - that is to have its ChildItems available - within the UI.

C#
bool GetIsExpanded(IDataGroup group)
Parameters:groupIDataGroupReturns:

bool

Gets the IDataGroup instance where the specified item resides. Will be null if no grouping is applied or the item does not belong to the ItemsSource.

C#
IDataGroup GetParentGroup(object item)
Parameters:itemobject

The data item to search for.

Returns:

IDataGroup