Interface
IDataViewCollection

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

Definition

Namespace:Telerik.Maui.Data

Assembly:Telerik.Maui.Core.dll

Syntax:

cs-api-definition
public interface IDataViewCollection : IEnumerable

Inherited Members IEnumerable.GetEnumerator()

Properties

IsDataReady

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

Declaration

cs-api-definition
bool IsDataReady { get; }

Property Value

bool

Items

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

Declaration

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

Property Value

IReadOnlyList<object>

Methods

CollapseAll()

Collapses all the groups.

Declaration

cs-api-definition
void CollapseAll()

CollapseGroup(IDataGroup)

Attempts to collapse the provided IDataGroup instance.

Declaration

cs-api-definition
void CollapseGroup(IDataGroup group)

Parameters

group

IDataGroup

CollapseItem(object)

Collapses the immediate groups that contains the specified item.

Declaration

cs-api-definition
void CollapseItem(object item)

Parameters

item

object

ExpandAll()

Expands all the groups.

Declaration

cs-api-definition
void ExpandAll()

ExpandGroup(IDataGroup)

Attempts to expand the provided IDataGroup instance.

Declaration

cs-api-definition
void ExpandGroup(IDataGroup group)

Parameters

group

IDataGroup

ExpandItem(object)

Expands the chain of groups where the specified item resides.

Declaration

cs-api-definition
void ExpandItem(object item)

Parameters

item

object

GetGroups(Predicate<IDataGroup>)

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

Declaration

cs-api-definition
IEnumerable<IDataGroup> GetGroups(Predicate<IDataGroup> condition = null)

Parameters

condition

Predicate<IDataGroup>

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

Returns

IEnumerable<IDataGroup>

GetIsExpanded(IDataGroup)

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

Declaration

cs-api-definition
bool GetIsExpanded(IDataGroup group)

Parameters

group

IDataGroup

Returns

bool

GetParentGroup(object)

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.

Declaration

cs-api-definition
IDataGroup GetParentGroup(object item)

Parameters

item

object

The data item to search for.

Returns

IDataGroup