Interface IDataViewCollection
Provides a view over the already computed data from the ItemsSource.
Namespace: Telerik.XamarinForms.Common.Data
Assembly: Telerik.XamarinForms.Common.dll
Syntax
public interface IDataViewCollection : IEnumerable
Properties
IsDataReady
Gets a value indicating whether all the internal data operations are completed and the view may be properly accessed.
Declaration
bool IsDataReady { get; }
Property Value
System.Boolean
|
Items
Gets the top-level items within the view. These might be either IDataGroup instances or data items if no grouping is applied.
Declaration
IReadOnlyList<object> Items { get; }
Property Value
System.Collections.Generic.IReadOnlyList<System.Object>
|
Methods
CollapseAll()
Collapses all the groups.
Declaration
void CollapseAll()
CollapseGroup(IDataGroup)
Attempts to collapse the provided IDataGroup instance.
Declaration
void CollapseGroup(IDataGroup group)
Parameters
IDataGroup
group
|
CollapseItem(Object)
Collapses the immediate groups that contains the specified item.
Declaration
void CollapseItem(object item)
Parameters
System.Object
item
|
ExpandAll()
Expands all the groups.
Declaration
void ExpandAll()
ExpandGroup(IDataGroup)
Attempts to expand the provided IDataGroup instance.
Declaration
void ExpandGroup(IDataGroup group)
Parameters
IDataGroup
group
|
ExpandItem(Object)
Expands the chain of groups where the specified item resides.
Declaration
void ExpandItem(object item)
Parameters
System.Object
item
|
GetGroups(Predicate<IDataGroup>)
Enumerates all the present IDataGroup instances using depth-first approach.
Declaration
IEnumerable<IDataGroup> GetGroups(Predicate<IDataGroup> condition = null)
Parameters
System.Predicate<IDataGroup>
condition
An optional condition that may be used to filter the results. |
Returns
System.Collections.Generic.IEnumerable<IDataGroup>
|
GetIsExpanded(IDataGroup)
Determines whether the provided group is considered "Expanded" - that is to have its ChildItems available - within the UI.
Declaration
bool GetIsExpanded(IDataGroup group)
Parameters
IDataGroup
group
|
Returns
System.Boolean
|
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
IDataGroup GetParentGroup(object item)
Parameters
System.Object
item
The data item to search for. |
Returns
IDataGroup
|