[]
        
(Showing Draft Content)

C1.Data.ClientView-1.ProgressiveLoading

ProgressiveLoading Method

ProgressiveLoading<TKey>(Expression<Func<T, TKey>>, int)

Specifies that the client view loading is performed not in a single trip to the server but in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.

Declaration
public ProgressiveView<T> ProgressiveLoading<TKey>(Expression<Func<T, TKey>> sortKeySelector, int loadSize)
Parameters
Type Name Description
Expression<Func<T, TKey>> sortKeySelector

A function specifying a sort key.

int loadSize

The size of the page.

Returns
Type Description
ProgressiveView<T>

A client view that loads the same entities as the source view but does it progressively.

Type Parameters
Name Description
TKey

The type of the sort key.

Remarks

Sorting is required, loading entities progressively is impossible without sort.

ProgressiveLoading<TKey>(Expression<Func<T, TKey>>, bool, int)

Specifies that the client view loading is performed not in a single trip to the server but in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.

Declaration
public ProgressiveView<T> ProgressiveLoading<TKey>(Expression<Func<T, TKey>> sortKeySelector, bool ascending, int loadSize)
Parameters
Type Name Description
Expression<Func<T, TKey>> sortKeySelector

A function specifying a sort key.

bool ascending

A boolean value indicating whether sorting must be performed in the ascending order (descending, if false).

int loadSize

The size of the page.

Returns
Type Description
ProgressiveView<T>

A client view that loads the same entities as the source view but does it progressively.

Type Parameters
Name Description
TKey

The type of the sort key.

Remarks

Sorting is required, loading entities progressively is impossible without sort.