ISupportLoadOnDemand
Defines the contract for controls that support loading items on demand. This interface provides functionality for loading data incrementally as needed, with support for cancellation and status tracking.
Definition
Namespace:Telerik.Maui
Assembly:Telerik.Maui.Core.dll
Syntax:
public interface ISupportLoadOnDemand
Derived Classes:
Properties
Gets a value indicating whether there are more items available to be loaded. When false, no further load-on-demand operations will be triggered.
bool HasMoreItems { get; }
true if more items are available for loading; otherwise, false.
Gets a value indicating whether a load-on-demand operation is currently in progress.
bool IsLoading { get; }
true if loading is currently in progress; otherwise, false.
Gets the function that performs the actual load-on-demand operation. This function accepts a CancellationToken and returns an IEnumerable of items to be loaded.
Func<CancellationToken, IEnumerable> LoadOnDemandAction { get; }
A function that takes a CancellationToken and returns an IEnumerable of loaded items.
Methods
Initiates a load-on-demand operation to load additional items. This method triggers the loading process using the configured LoadOnDemandAction.
void LoadItemsOnDemand()
Events
Occurs when a load-on-demand operation has been canceled.
event EventHandler<EventArgs> LoadingOnDemandCanceled
Occurs when the load-on-demand operation has finished, either successfully or with an error.
event EventHandler<EventArgs> LoadingOnDemandFinished
Occurs when a load-on-demand operation has started.
event EventHandler<EventArgs> LoadingOnDemandStarted