Table of Contents

Class DataResult<TItem>

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll

Page returned by an IDataCollectionDataSource<TItem> in response to a DataRequest. Carries the materialised slice for the requested page plus the total row count after filtering (used by the host component to compute pagination — the slice itself only contains the visible page).

public sealed record DataResult<TItem>

Type Parameters

TItem

Row item type.

Inheritance
object
DataResult<TItem>

Constructors

DataResult(IReadOnlyList<TItem>, int)

Page returned by an IDataCollectionDataSource<TItem> in response to a DataRequest. Carries the materialised slice for the requested page plus the total row count after filtering (used by the host component to compute pagination — the slice itself only contains the visible page).

public DataResult(IReadOnlyList<TItem> Items, int TotalCount)

Parameters

Items IReadOnlyList<TItem>

Materialised page of rows for the requested page index.

TotalCount int

Total number of rows matching the request's filters before pagination. Drives the pagination footer ("Page X of Y") and the live-region announcement.

Properties

Items

Materialised page of rows for the requested page index.

public IReadOnlyList<TItem> Items { get; init; }

Property Value

IReadOnlyList<TItem>

TotalCount

Total number of rows matching the request's filters before pagination. Drives the pagination footer ("Page X of Y") and the live-region announcement.

public int TotalCount { get; init; }

Property Value

int