ClassIncrementalLoadingCollection<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:
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:
Inherited Members
Constructors
IncrementalLoadingCollection(Func<uint, Task<IEnumerable<T>>>)
Initializes a new instance of the IncrementalLoadingCollection<T> class.
Declaration
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
public uint? BatchSize { get; set; }
Property Value
uint?
The size of the batch.
Implements
HasMoreItems
Gets a value indicating whether more items could be loaded.
Declaration
public virtual bool HasMoreItems { get; }
Property Value
True if additional unloaded items remain in the view; otherwise, false.
Methods
LoadMoreItemsAsync(uint)
Initializes incremental loading from the view.
Declaration
public IAsyncOperation<LoadMoreItemsResult> LoadMoreItemsAsync(uint count)
Parameters
count
The number of items to load.
Returns
IAsyncOperation<LoadMoreItemsResult>
The wrapped results of the load operation.