Class
IncrementalLoadingCollection<T>

Represents a dynamic data collection that implements IIncrementalBatchLoading and simplifies its usage.

Definition

Namespace:Telerik.Core.Data

Assembly:Telerik.WinUI.Controls.dll

Type Parameters:

T

Syntax:

cs-api-definition
public class IncrementalLoadingCollection<T> : BindableCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IIncrementalBatchLoading, ISupportIncrementalLoading

Inheritance: objectCollection<T>ObservableCollection<T>BindableCollection<T>IncrementalLoadingCollection<T>

Implements: ICollectionICollection<T>IEnumerableIEnumerable<T>IIncrementalBatchLoadingIListIList<T>INotifyCollectionChangedINotifyPropertyChangedIReadOnlyCollection<T>IReadOnlyList<T>ISupportIncrementalLoading

Inherited Members ObservableCollection<T>.Move(int, int)ObservableCollection<T>.ClearItems()ObservableCollection<T>.RemoveItem(int)ObservableCollection<T>.InsertItem(int, T)ObservableCollection<T>.SetItem(int, T)ObservableCollection<T>.MoveItem(int, int)ObservableCollection<T>.OnPropertyChanged(PropertyChangedEventArgs)ObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedEventArgs)ObservableCollection<T>.BlockReentrancy()ObservableCollection<T>.CheckReentrancy()ObservableCollection<T>.CollectionChangedObservableCollection<T>.PropertyChangedCollection<T>.Add(T)Collection<T>.Clear()Collection<T>.CopyTo(T[], int)Collection<T>.Contains(T)Collection<T>.GetEnumerator()Collection<T>.IndexOf(T)Collection<T>.Insert(int, T)Collection<T>.Remove(T)Collection<T>.RemoveAt(int)Collection<T>.CountCollection<T>.ItemsCollection<T>.this[int]

Constructors

IncrementalLoadingCollection(Func<uint, Task<IEnumerable<T>>>)

Initializes a new instance of the IncrementalLoadingCollection<T> class.

Declaration

cs-api-definition
public IncrementalLoadingCollection(Func<uint, Task<IEnumerable<T>>> load)

Parameters

load

Func<uint, Task<IEnumerable<T>>>

Specifies the callback used when more items are requested.

Properties

BatchSize

Gets or sets the data batch size that will be requested.

Declaration

cs-api-definition
public uint? BatchSize { get; set; }

Property Value

uint?

The size of the batch.

Implements IIncrementalBatchLoading.BatchSize

HasMoreItems

Gets a value indicating whether more items could be loaded.

Declaration

cs-api-definition
public virtual bool HasMoreItems { get; }

Property Value

bool

True if additional unloaded items remain in the view; otherwise, false.

Methods

LoadMoreItemsAsync(uint)

Initializes incremental loading from the view.

Declaration

cs-api-definition
public IAsyncOperation<LoadMoreItemsResult> LoadMoreItemsAsync(uint count)

Parameters

count

uint

The number of items to load.

Returns

IAsyncOperation<LoadMoreItemsResult>

The wrapped results of the load operation.